@wangeditor-next/editor 5.3.1 → 5.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/css/style.css +1 -1
- package/dist/index.esm.js +5 -122
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -108
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,o,i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=Function.prototype,s=u.apply,l=u.bind,c=u.call,f="object"==typeof Reflect&&Reflect.apply||(l?c.bind(s):function(){return c.apply(s,arguments)}),d=Function.prototype,p=d.bind,h=d.call,v=p&&p.bind(h),g=p?function(e){return e&&v(h,e)}:function(e){return e&&function(){return h.apply(e,arguments)}},y=function(e){return"function"==typeof e},m=function(e){try{return!!e()}catch(e){return!0}},b=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,w=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,D=C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S,A={f:D},O=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},x=g({}.toString),T=g("".slice),N=function(e){return T(x(e),8,-1)},k=a.Object,B=g("".split),I=m((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==N(e)?B(e,""):k(e)}:k,F=a.TypeError,P=function(e){if(null==e)throw F("Can't call method on "+e);return e},_=function(e){return I(P(e))},R=function(e){return"object"==typeof e?null!==e:y(e)},L={},j=function(e){return y(e)?e:void 0},M=function(e,t){return arguments.length<2?j(L[e])||j(a[e]):L[e]&&L[e][t]||a[e]&&a[e][t]},z=g({}.isPrototypeOf),H=M("navigator","userAgent")||"",U=a.process,$=a.Deno,V=U&&U.versions||$&&$.version,G=V&&V.v8;G&&(o=(r=G.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W,q=o,K=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=a.Object,Z=Y?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return y(t)&&z(t.prototype,X(e))},J=a.String,Q=function(e){try{return J(e)}catch(e){return"Object"}},ee=a.TypeError,te=function(e){if(y(e))return e;throw ee(Q(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=a.TypeError,oe=Object.defineProperty,ie=a["__core-js_shared__"]||function(e,t){try{oe(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}("__core-js_shared__",{}),ae=n((function(e){(e.exports=function(e,t){return ie[e]||(ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ue=a.Object,se=function(e){return ue(P(e))},le=g({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},fe=0,de=Math.random(),pe=g(1..toString),he=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pe(++fe+de,36)},ve=ae("wks"),ge=a.Symbol,ye=ge&&ge.for,me=Y?ge:ge&&ge.withoutSetter||he,be=function(e){if(!ce(ve,e)||!K&&"string"!=typeof ve[e]){var t="Symbol."+e;K&&ce(ge,e)?ve[e]=ge[e]:ve[e]=Y&&ye?ye(t):me(t)}return ve[e]},Ee=a.TypeError,we=be("toPrimitive"),Se=function(e,t){if(!R(e)||Z(e))return e;var n,r=ne(e,we);if(r){if(void 0===t&&(t="default"),n=w(r,e,t),!R(n)||Z(n))return n;throw Ee("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!R(r=w(n,e)))return r;if(y(n=e.valueOf)&&!R(r=w(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!R(r=w(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=Se(e,"string");return Z(t)?t:t+""},De=a.document,Ae=R(De)&&R(De.createElement),Oe=function(e){return Ae?De.createElement(e):{}},xe=!b&&!m((function(){return 7!=Object.defineProperty(Oe("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,Ne=b?Te:function(e,t){if(e=_(e),t=Ce(t),xe)try{return Te(e,t)}catch(e){}if(ce(e,t))return O(!w(A.f,e,t),e[t])},ke={f:Ne},Be=/#|\.prototype\./,Ie=function(e,t){var n=Pe[Fe(e)];return n==Re||n!=_e&&(y(t)?m(t):!!t)},Fe=Ie.normalize=function(e){return String(e).replace(Be,".").toLowerCase()},Pe=Ie.data={},_e=Ie.NATIVE="N",Re=Ie.POLYFILL="P",Le=Ie,je=g(g.bind),Me=function(e,t){return te(e),void 0===t?e:je?je(e,t):function(){return e.apply(t,arguments)}},ze=a.String,He=a.TypeError,Ue=function(e){if(R(e))return e;throw He(ze(e)+" is not an object")},$e=a.TypeError,Ve=Object.defineProperty,Ge=b?Ve:function(e,t,n){if(Ue(e),t=Ce(t),Ue(n),xe)try{return Ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e},We={f:Ge},qe=b?function(e,t,n){return We.f(e,t,O(1,n))}:function(e,t,n){return e[t]=n,e},Ke=ke.f,Ye=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return f(e,this,arguments)};return t.prototype=e.prototype,t},Xe=function(e,t){var n,r,o,i,u,s,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?a:p?a[f]:(a[f]||{}).prototype,m=d?L:L[f]||qe(L,f,{})[f],b=m.prototype;for(o in t)n=!Le(d?o:f+(p?".":"#")+o,e.forced)&&v&&ce(v,o),u=m[o],n&&(s=e.noTargetGet?(c=Ke(v,o))&&c.value:v[o]),i=n&&s?s:t[o],n&&typeof u==typeof i||(l=e.bind&&n?Me(i,a):e.wrap&&n?Ye(i):h&&y(i)?g(i):i,(e.sham||i&&i.sham||u&&u.sham)&&qe(l,"sham",!0),qe(m,o,l),h&&(ce(L,r=f+"Prototype")||qe(L,r,{}),qe(L[r],o,i),e.real&&b&&!b[o]&&qe(b,o,i)))},Ze=ae("keys"),Je=function(e){return Ze[e]||(Ze[e]=he(e))},Qe=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),et=Je("IE_PROTO"),tt=a.Object,nt=tt.prototype,rt=Qe?tt.getPrototypeOf:function(e){var t=se(e);if(ce(t,et))return t[et];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof tt?nt:null},ot=a.String,it=a.TypeError,at=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ue(n),function(e){if("object"==typeof e||y(e))return e;throw it("Can't set "+ot(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ut=Math.ceil,st=Math.floor,lt=function(e){var t=+e;return t!=t||0===t?0:(t>0?st:ut)(t)},ct=Math.max,ft=Math.min,dt=function(e,t){var n=lt(e);return n<0?ct(n+t,0):ft(n,t)},pt=Math.min,ht=function(e){return(t=e.length)>0?pt(lt(t),9007199254740991):0;var t},vt=function(e){return function(t,n,r){var o,i=_(t),a=ht(i),u=dt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gt={includes:vt(!0),indexOf:vt(!1)},yt={},mt=gt.indexOf,bt=g([].push),Et=function(e,t){var n,r=_(e),o=0,i=[];for(n in r)!ce(yt,n)&&ce(r,n)&&bt(i,n);for(;t.length>o;)ce(r,n=t[o++])&&(~mt(i,n)||bt(i,n));return i},wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=wt.concat("length","prototype"),Ct=Object.getOwnPropertyNames||function(e){return Et(e,St)},Dt={f:Ct},At={f:Object.getOwnPropertySymbols},Ot=g([].concat),xt=M("Reflect","ownKeys")||function(e){var t=Dt.f(Ue(e)),n=At.f;return n?Ot(t,n(e)):t},Tt=Object.keys||function(e){return Et(e,wt)},Nt=b?Object.defineProperties:function(e,t){Ue(e);for(var n,r=_(t),o=Tt(t),i=o.length,a=0;i>a;)We.f(e,n=o[a++],r[n]);return e},kt=M("document","documentElement"),Bt=Je("IE_PROTO"),It=function(){},Ft=function(e){return"<script>"+e+"<\/script>"},Pt=function(e){e.write(Ft("")),e.close();var t=e.parentWindow.Object;return e=null,t},_t=function(){try{W=new ActiveXObject("htmlfile")}catch(e){}var e,t;_t="undefined"!=typeof document?document.domain&&W?Pt(W):((t=Oe("iframe")).style.display="none",kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ft("document.F=Object")),e.close(),e.F):Pt(W);for(var n=wt.length;n--;)delete _t.prototype[wt[n]];return _t()};yt[Bt]=!0;var Rt=Object.create||function(e,t){var n;return null!==e?(It.prototype=Ue(e),n=new It,It.prototype=null,n[Bt]=e):n=_t(),void 0===t?n:Nt(n,t)},Lt=function(e,t,n){var r=Ce(t);r in e?We.f(e,r,O(0,n)):e[r]=n},jt=a.Array,Mt=Math.max,zt=function(e,t,n){for(var r=ht(e),o=dt(t,r),i=dt(void 0===n?r:n,r),a=jt(Mt(i-o,0)),u=0;o<i;o++,u++)Lt(a,u,e[o]);return a.length=u,a},Ht=g("".replace),Ut=g("".split),$t=g([].join),Vt=String(Error("zxcasd").stack),Gt=/\n\s*at [^:]*:[^\n]*/,Wt=Gt.test(Vt),qt=/@[^\n]*\n/.test(Vt)&&!/zxcasd/.test(Vt),Kt=function(e,t){if("string"!=typeof e)return e;if(Wt)for(;t--;)e=Ht(e,Gt,"");else if(qt)return $t(zt(Ut(e,"\n"),t),"\n");return e},Yt=function(e,t){R(t)&&"cause"in t&&qe(e,"cause",t.cause)},Xt={},Zt=be("iterator"),Jt=Array.prototype,Qt={};Qt[be("toStringTag")]="z";var en="[object z]"===String(Qt),tn=be("toStringTag"),nn=a.Object,rn="Arguments"==N(function(){return arguments}()),on=en?N:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=nn(e),tn))?n:rn?N(t):"Object"==(r=N(t))&&y(t.callee)?"Arguments":r},an=be("iterator"),un=function(e){if(null!=e)return ne(e,an)||ne(e,"@@iterator")||Xt[on(e)]},sn=a.TypeError,ln=function(e,t,n){var r,o;Ue(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=w(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},cn=a.TypeError,fn=function(e,t){this.stopped=e,this.result=t},dn=fn.prototype,pn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Me(t,c),v=function(e){return r&&ln(r,"normal",e),new fn(!0,e)},g=function(e){return f?(Ue(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=un(e)))throw cn(Q(e)+" is not iterable");if(function(e){return void 0!==e&&(Xt.Array===e||Jt[Zt]===e)}(o)){for(i=0,a=ht(e);a>i;i++)if((u=g(e[i]))&&z(dn,u))return u;return new fn(!1)}r=function(e,t){var n=arguments.length<2?un(e):t;if(te(n))return Ue(w(n,e));throw sn(Q(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=w(s,r)).done;){try{u=g(l.value)}catch(e){ln(r,"throw",e)}if("object"==typeof u&&u&&z(dn,u))return u}return new fn(!1)},hn=a.String,vn=function(e){if("Symbol"===on(e))throw TypeError("Cannot convert a Symbol value to a string");return hn(e)},gn=function(e,t){return void 0===e?arguments.length<2?"":t:vn(e)},yn=!m((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",O(1,7)),7!==e.stack)})),mn=be("toStringTag"),bn=a.Error,En=[].push,wn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=z(Sn,this);at?n=at(new bn(void 0),o?rt(this):Sn):(n=o?this:Rt(Sn),qe(n,mn,"Error")),qe(n,"message",gn(t,"")),yn&&qe(n,"stack",Kt(n.stack,1)),Yt(n,r);var i=[];return pn(e,En,{that:i}),qe(n,"errors",i),n};at?at(wn,bn):function(e,t){for(var n=xt(t),r=We.f,o=ke.f,i=0;i<n.length;i++){var a=n[i];ce(e,a)||r(e,a,o(t,a))}}(wn,bn);var Sn=wn.prototype=Rt(bn.prototype,{constructor:O(1,wn),message:O(1,""),name:O(1,"AggregateError")});Xe({global:!0},{AggregateError:wn});var Cn=g(Function.toString);y(ie.inspectSource)||(ie.inspectSource=function(e){return Cn(e)});var Dn,An,On,xn=ie.inspectSource,Tn=a.WeakMap,Nn=y(Tn)&&/native code/.test(xn(Tn)),kn=a.TypeError,Bn=a.WeakMap;if(Nn||ie.state){var In=ie.state||(ie.state=new Bn),Fn=g(In.get),Pn=g(In.has),_n=g(In.set);Dn=function(e,t){if(Pn(In,e))throw new kn("Object already initialized");return t.facade=e,_n(In,e,t),t},An=function(e){return Fn(In,e)||{}},On=function(e){return Pn(In,e)}}else{var Rn=Je("state");yt[Rn]=!0,Dn=function(e,t){if(ce(e,Rn))throw new kn("Object already initialized");return t.facade=e,qe(e,Rn,t),t},An=function(e){return ce(e,Rn)?e[Rn]:{}},On=function(e){return ce(e,Rn)}}var Ln,jn,Mn,zn={set:Dn,get:An,has:On,enforce:function(e){return On(e)?An(e):Dn(e,{})},getterFor:function(e){return function(t){var n;if(!R(t)||(n=An(t)).type!==e)throw kn("Incompatible receiver, "+e+" required");return n}}},Hn=Function.prototype,Un=b&&Object.getOwnPropertyDescriptor,$n=ce(Hn,"name"),Vn={EXISTS:$n,PROPER:$n&&"something"===function(){}.name,CONFIGURABLE:$n&&(!b||b&&Un(Hn,"name").configurable)},Gn=function(e,t,n,r){r&&r.enumerable?e[t]=n:qe(e,t,n)},Wn=be("iterator"),qn=!1;[].keys&&("next"in(Mn=[].keys())?(jn=rt(rt(Mn)))!==Object.prototype&&(Ln=jn):qn=!0);var Kn=null==Ln||m((function(){var e={};return Ln[Wn].call(e)!==e}));Ln=Kn?{}:Rt(Ln),y(Ln[Wn])||Gn(Ln,Wn,(function(){return this}));var Yn={IteratorPrototype:Ln,BUGGY_SAFARI_ITERATORS:qn},Xn=en?{}.toString:function(){return"[object "+on(this)+"]"},Zn=We.f,Jn=be("toStringTag"),Qn=function(e,t,n,r){if(e){var o=n?e:e.prototype;ce(o,Jn)||Zn(o,Jn,{configurable:!0,value:t}),r&&!en&&qe(o,"toString",Xn)}},er=Yn.IteratorPrototype,tr=function(){return this},nr=Vn.PROPER,rr=Yn.BUGGY_SAFARI_ITERATORS,or=be("iterator"),ir=function(){return this},ar=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Rt(er,{next:O(+!r,n)}),Qn(e,o,!1,!0),Xt[o]=tr}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!rr&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[or]||p["@@iterator"]||o&&p[o],v=!rr&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=rt(g.call(new e)))!==Object.prototype&&u.next&&(Qn(u,f,!0,!0),Xt[f]=ir),nr&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return w(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(rr||d||!(l in p))&&Gn(p,l,s[l]);else Xe({target:t,proto:!0,forced:rr||d},s);return a&&p[or]!==v&&Gn(p,or,v,{name:o}),Xt[t]=v,s},ur=zn.set,sr=zn.getterFor("Array Iterator");ar(Array,"Array",(function(e,t){ur(this,{type:"Array Iterator",target:_(e),index:0,kind:t})}),(function(){var e=sr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Xt.Arguments=Xt.Array;var lr=g("".charAt),cr=g("".charCodeAt),fr=g("".slice),dr=function(e){return function(t,n){var r,o,i=vn(P(t)),a=lt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?e?lr(i,a):r:e?fr(i,a,a+2):o-56320+(r-55296<<10)+65536}},pr={codeAt:dr(!1),charAt:dr(!0)}.charAt,hr=zn.set,vr=zn.getterFor("String Iterator");ar(String,"String",(function(e){hr(this,{type:"String Iterator",string:vn(e),index:0})}),(function(){var e,t=vr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pr(n,r),t.index+=e.length,{value:e,done:!1})}));var gr=L.AggregateError,yr=be("toStringTag");for(var mr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var br=a[mr],Er=br&&br.prototype;Er&&on(Er)!==yr&&qe(Er,yr,mr),Xt[mr]=Xt.Array}var wr,Sr,Cr=gr,Dr=function(e){return e&&e.Math==Math&&e},Ar=Dr("object"==typeof globalThis&&globalThis)||Dr("object"==typeof window&&window)||Dr("object"==typeof self&&self)||Dr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),Or=function(e){try{return!!e()}catch(e){return!0}},xr=!Or((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,Nr=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},kr={}.propertyIsEnumerable,Br=Object.getOwnPropertyDescriptor,Ir=Br&&!kr.call({1:2},1)?function(e){var t=Br(this,e);return!!t&&t.enumerable}:kr,Fr={f:Ir},Pr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_r=Function.prototype,Rr=_r.bind,Lr=_r.call,jr=Rr&&Rr.bind(Lr),Mr=Rr?function(e){return e&&jr(Lr,e)}:function(e){return e&&function(){return Lr.apply(e,arguments)}},zr=Mr({}.toString),Hr=Mr("".slice),Ur=function(e){return Hr(zr(e),8,-1)},$r=Ar.Object,Vr=Mr("".split),Gr=Or((function(){return!$r("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ur(e)?Vr(e,""):$r(e)}:$r,Wr=Ar.TypeError,qr=function(e){if(null==e)throw Wr("Can't call method on "+e);return e},Kr=function(e){return Gr(qr(e))},Yr=function(e){return"function"==typeof e},Xr=function(e){return"object"==typeof e?null!==e:Yr(e)},Zr=function(e){return Yr(e)?e:void 0},Jr=function(e,t){return arguments.length<2?Zr(Ar[e]):Ar[e]&&Ar[e][t]},Qr=Mr({}.isPrototypeOf),eo=Jr("navigator","userAgent")||"",to=Ar.process,no=Ar.Deno,ro=to&&to.versions||no&&no.version,oo=ro&&ro.v8;oo&&(Sr=(wr=oo.split("."))[0]>0&&wr[0]<4?1:+(wr[0]+wr[1])),!Sr&&eo&&(!(wr=eo.match(/Edge\/(\d+)/))||wr[1]>=74)&&(wr=eo.match(/Chrome\/(\d+)/))&&(Sr=+wr[1]);var io=Sr,ao=!!Object.getOwnPropertySymbols&&!Or((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&io&&io<41})),uo=ao&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,so=Ar.Object,lo=uo?function(e){return"symbol"==typeof e}:function(e){var t=Jr("Symbol");return Yr(t)&&Qr(t.prototype,so(e))},co=Ar.String,fo=function(e){try{return co(e)}catch(e){return"Object"}},po=Ar.TypeError,ho=function(e){if(Yr(e))return e;throw po(fo(e)+" is not a function")},vo=function(e,t){var n=e[t];return null==n?void 0:ho(n)},go=Ar.TypeError,yo=Object.defineProperty,mo=function(e,t){try{yo(Ar,e,{value:t,configurable:!0,writable:!0})}catch(n){Ar[e]=t}return t},bo=Ar["__core-js_shared__"]||mo("__core-js_shared__",{}),Eo=n((function(e){(e.exports=function(e,t){return bo[e]||(bo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wo=Ar.Object,So=function(e){return wo(qr(e))},Co=Mr({}.hasOwnProperty),Do=Object.hasOwn||function(e,t){return Co(So(e),t)},Ao=0,Oo=Math.random(),xo=Mr(1..toString),To=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xo(++Ao+Oo,36)},No=Eo("wks"),ko=Ar.Symbol,Bo=ko&&ko.for,Io=uo?ko:ko&&ko.withoutSetter||To,Fo=function(e){if(!Do(No,e)||!ao&&"string"!=typeof No[e]){var t="Symbol."+e;ao&&Do(ko,e)?No[e]=ko[e]:No[e]=uo&&Bo?Bo(t):Io(t)}return No[e]},Po=Ar.TypeError,_o=Fo("toPrimitive"),Ro=function(e,t){if(!Xr(e)||lo(e))return e;var n,r=vo(e,_o);if(r){if(void 0===t&&(t="default"),n=Nr(r,e,t),!Xr(n)||lo(n))return n;throw Po("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;if(Yr(n=e.valueOf)&&!Xr(r=Nr(n,e)))return r;if("string"!==t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;throw go("Can't convert object to primitive value")}(e,t)},Lo=function(e){var t=Ro(e,"string");return lo(t)?t:t+""},jo=Ar.document,Mo=Xr(jo)&&Xr(jo.createElement),zo=function(e){return Mo?jo.createElement(e):{}},Ho=!xr&&!Or((function(){return 7!=Object.defineProperty(zo("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,$o=xr?Uo:function(e,t){if(e=Kr(e),t=Lo(t),Ho)try{return Uo(e,t)}catch(e){}if(Do(e,t))return Pr(!Nr(Fr.f,e,t),e[t])},Vo={f:$o},Go=Ar.String,Wo=Ar.TypeError,qo=function(e){if(Xr(e))return e;throw Wo(Go(e)+" is not an object")},Ko=Ar.TypeError,Yo=Object.defineProperty,Xo=xr?Yo:function(e,t,n){if(qo(e),t=Lo(t),qo(n),Ho)try{return Yo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ko("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Zo={f:Xo},Jo=xr?function(e,t,n){return Zo.f(e,t,Pr(1,n))}:function(e,t,n){return e[t]=n,e},Qo=Mr(Function.toString);Yr(bo.inspectSource)||(bo.inspectSource=function(e){return Qo(e)});var ei,ti,ni,ri=bo.inspectSource,oi=Ar.WeakMap,ii=Yr(oi)&&/native code/.test(ri(oi)),ai=Eo("keys"),ui=function(e){return ai[e]||(ai[e]=To(e))},si={},li=Ar.TypeError,ci=Ar.WeakMap;if(ii||bo.state){var fi=bo.state||(bo.state=new ci),di=Mr(fi.get),pi=Mr(fi.has),hi=Mr(fi.set);ei=function(e,t){if(pi(fi,e))throw new li("Object already initialized");return t.facade=e,hi(fi,e,t),t},ti=function(e){return di(fi,e)||{}},ni=function(e){return pi(fi,e)}}else{var vi=ui("state");si[vi]=!0,ei=function(e,t){if(Do(e,vi))throw new li("Object already initialized");return t.facade=e,Jo(e,vi,t),t},ti=function(e){return Do(e,vi)?e[vi]:{}},ni=function(e){return Do(e,vi)}}var gi={set:ei,get:ti,has:ni,enforce:function(e){return ni(e)?ti(e):ei(e,{})},getterFor:function(e){return function(t){var n;if(!Xr(t)||(n=ti(t)).type!==e)throw li("Incompatible receiver, "+e+" required");return n}}},yi=Function.prototype,mi=xr&&Object.getOwnPropertyDescriptor,bi=Do(yi,"name"),Ei={EXISTS:bi,PROPER:bi&&"something"===function(){}.name,CONFIGURABLE:bi&&(!xr||xr&&mi(yi,"name").configurable)},wi=n((function(e){var t=Ei.CONFIGURABLE,n=gi.get,r=gi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Yr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Do(i,"name")||t&&i.name!==f)&&Jo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ar?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Jo(e,n,i)):l?e[n]=i:mo(n,i)})(Function.prototype,"toString",(function(){return Yr(this)&&n(this).source||ri(this)}))})),Si=Math.ceil,Ci=Math.floor,Di=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ci:Si)(t)},Ai=Math.max,Oi=Math.min,xi=function(e,t){var n=Di(e);return n<0?Ai(n+t,0):Oi(n,t)},Ti=Math.min,Ni=function(e){return e>0?Ti(Di(e),9007199254740991):0},ki=function(e){return Ni(e.length)},Bi=function(e){return function(t,n,r){var o,i=Kr(t),a=ki(i),u=xi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ii={includes:Bi(!0),indexOf:Bi(!1)}.indexOf,Fi=Mr([].push),Pi=function(e,t){var n,r=Kr(e),o=0,i=[];for(n in r)!Do(si,n)&&Do(r,n)&&Fi(i,n);for(;t.length>o;)Do(r,n=t[o++])&&(~Ii(i,n)||Fi(i,n));return i},_i=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ri=_i.concat("length","prototype"),Li=Object.getOwnPropertyNames||function(e){return Pi(e,Ri)},ji={f:Li},Mi={f:Object.getOwnPropertySymbols},zi=Mr([].concat),Hi=Jr("Reflect","ownKeys")||function(e){var t=ji.f(qo(e)),n=Mi.f;return n?zi(t,n(e)):t},Ui=function(e,t){for(var n=Hi(t),r=Zo.f,o=Vo.f,i=0;i<n.length;i++){var a=n[i];Do(e,a)||r(e,a,o(t,a))}},$i=/#|\.prototype\./,Vi=function(e,t){var n=Wi[Gi(e)];return n==Ki||n!=qi&&(Yr(t)?Or(t):!!t)},Gi=Vi.normalize=function(e){return String(e).replace($i,".").toLowerCase()},Wi=Vi.data={},qi=Vi.NATIVE="N",Ki=Vi.POLYFILL="P",Yi=Vi,Xi=Vo.f,Zi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ar:l?Ar[u]||mo(u,{}):(Ar[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xi(n,r))&&a.value:n[r],!Yi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&Jo(i,"sham",!0),wi(n,r,i,e)}},Ji={};Ji[Fo("toStringTag")]="z";var Qi,ea="[object z]"===String(Ji),ta=Fo("toStringTag"),na=Ar.Object,ra="Arguments"==Ur(function(){return arguments}()),oa=ea?Ur:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=na(e),ta))?n:ra?Ur(t):"Object"==(r=Ur(t))&&Yr(t.callee)?"Arguments":r},ia=Ar.String,aa=function(e){if("Symbol"===oa(e))throw TypeError("Cannot convert a Symbol value to a string");return ia(e)},ua=function(){var e=qo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sa=Ar.RegExp,la=Or((function(){var e=sa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ca=la||Or((function(){return!sa("a","y").sticky})),fa=la||Or((function(){var e=sa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),da={BROKEN_CARET:fa,MISSED_STICKY:ca,UNSUPPORTED_Y:la},pa=Object.keys||function(e){return Pi(e,_i)},ha=xr?Object.defineProperties:function(e,t){qo(e);for(var n,r=Kr(t),o=pa(t),i=o.length,a=0;i>a;)Zo.f(e,n=o[a++],r[n]);return e},va=Jr("document","documentElement"),ga=ui("IE_PROTO"),ya=function(){},ma=function(e){return"<script>"+e+"<\/script>"},ba=function(e){e.write(ma("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{Qi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&Qi?ba(Qi):((t=zo("iframe")).style.display="none",va.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ma("document.F=Object")),e.close(),e.F):ba(Qi);for(var n=_i.length;n--;)delete Ea.prototype[_i[n]];return Ea()};si[ga]=!0;var wa,Sa,Ca=Object.create||function(e,t){var n;return null!==e?(ya.prototype=qo(e),n=new ya,ya.prototype=null,n[ga]=e):n=Ea(),void 0===t?n:ha(n,t)},Da=Ar.RegExp,Aa=Or((function(){var e=Da(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Oa=Ar.RegExp,xa=Or((function(){var e=Oa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=gi.get,Na=Eo("native-string-replace",String.prototype.replace),ka=RegExp.prototype.exec,Ba=ka,Ia=Mr("".charAt),Fa=Mr("".indexOf),Pa=Mr("".replace),_a=Mr("".slice),Ra=(Sa=/b*/g,Nr(ka,wa=/a/,"a"),Nr(ka,Sa,"a"),0!==wa.lastIndex||0!==Sa.lastIndex),La=da.BROKEN_CARET,ja=void 0!==/()??/.exec("")[1];(Ra||ja||La||Aa||xa)&&(Ba=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=aa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nr(Ba,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=La&&s.sticky,h=Nr(ua,s),v=s.source,g=0,y=c;if(p&&(h=Pa(h,"y",""),-1===Fa(h,"g")&&(h+="g"),y=_a(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ia(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ja&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Ra&&(r=s.lastIndex),o=Nr(ka,p?n:s,y),p?o?(o.input=_a(o.input,g),o[0]=_a(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Ra&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ja&&o&&o.length>1&&Nr(Na,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ca(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ma=Ba;Zi({target:"RegExp",proto:!0,forced:/./.exec!==Ma},{exec:Ma});var za=Fo("species"),Ha=RegExp.prototype,Ua=Mr("".charAt),$a=Mr("".charCodeAt),Va=Mr("".slice),Ga=function(e){return function(t,n){var r,o,i=aa(qr(t)),a=Di(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$a(i,a))<55296||r>56319||a+1===u||(o=$a(i,a+1))<56320||o>57343?e?Ua(i,a):r:e?Va(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wa={codeAt:Ga(!1),charAt:Ga(!0)},qa=Wa.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=Ar.TypeError,Xa=function(e,t){var n=e.exec;if(Yr(n)){var r=Nr(n,e,t);return null!==r&&qo(r),r}if("RegExp"===Ur(e))return Nr(Ma,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Fo(e),i=!Or((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Or((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[za]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Mr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Mr(e),s=t.exec;return s===Ma||s===Ha.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));wi(String.prototype,e,s[0]),wi(Ha,o,s[1])}r&&Jo(Ha[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=qr(this),r=null==t?void 0:vo(t,e);return r?Nr(r,t,n):new RegExp(t)[e](aa(n))},function(e){var r=qo(this),o=aa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Xa(r,o));){var c=aa(u[0]);s[l]=c,""===c&&(r.lastIndex=Ka(o,Ni(r.lastIndex),a)),l++}return 0===l?null:s}]})),Zi({global:!0},{globalThis:Ar});var Za=!Or((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=ui("IE_PROTO"),Qa=Ar.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(e){var t=So(e);if(Do(t,Ja))return t[Ja];var n=t.constructor;return Yr(n)&&t instanceof n?n.prototype:t instanceof Qa?eu:null},nu=Ar.String,ru=Ar.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return qo(n),function(e){if("object"==typeof e||Yr(e))return e;throw ru("Can't set "+nu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iu=Ar.Array,au=Math.max,uu=Mr("".replace),su=Mr("".split),lu=Mr([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=uu(e,fu,"");else if(pu)return lu(function(e,t,n){for(var r,o,i,a,u=ki(e),s=xi(t,u),l=xi(void 0===n?u:n,u),c=iu(au(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=Lo(o))in r?Zo.f(r,a,Pr(0,i)):r[a]=i;return c.length=f,c}(su(e,"\n"),t),"\n");return e},vu=function(e,t){Xr(t)&&"cause"in t&&Jo(e,"cause",t.cause)},gu=Mr(Mr.bind),yu=function(e,t){return ho(e),void 0===t?e:gu?gu(e,t):function(){return e.apply(t,arguments)}},mu={},bu=Fo("iterator"),Eu=Array.prototype,wu=Fo("iterator"),Su=function(e){if(null!=e)return vo(e,wu)||vo(e,"@@iterator")||mu[oa(e)]},Cu=Ar.TypeError,Du=function(e,t,n){var r,o;qo(e);try{if(!(r=vo(e,"return"))){if("throw"===t)throw n;return n}r=Nr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return qo(r),n},Au=Ar.TypeError,Ou=function(e,t){this.stopped=e,this.result=t},xu=Ou.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=yu(t,c),v=function(e){return r&&Du(r,"normal",e),new Ou(!0,e)},g=function(e){return f?(qo(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Su(e)))throw Au(fo(e)+" is not iterable");if(function(e){return void 0!==e&&(mu.Array===e||Eu[bu]===e)}(o)){for(i=0,a=ki(e);a>i;i++)if((u=g(e[i]))&&Qr(xu,u))return u;return new Ou(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(ho(n))return qo(Nr(n,e));throw Cu(fo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Nr(s,r)).done;){try{u=g(l.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&Qr(xu,u))return u}return new Ou(!1)},Nu=function(e,t){return void 0===e?arguments.length<2?"":t:aa(e)},ku=!Or((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Pr(1,7)),7!==e.stack)})),Bu=Fo("toStringTag"),Iu=Ar.Error,Fu=[].push,Pu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Qr(_u,this);ou?n=ou(new Iu(void 0),o?tu(this):_u):(n=o?this:Ca(_u),Jo(n,Bu,"Error")),Jo(n,"message",Nu(t,"")),ku&&Jo(n,"stack",hu(n.stack,1)),vu(n,r);var i=[];return Tu(e,Fu,{that:i}),Jo(n,"errors",i),n};ou?ou(Pu,Iu):Ui(Pu,Iu);var _u=Pu.prototype=Ca(Iu.prototype,{constructor:Pr(1,Pu),message:Pr(1,""),name:Pr(1,"AggregateError")});Zi({global:!0},{AggregateError:Pu});var Ru=Fo("unscopables"),Lu=Array.prototype;null==Lu[Ru]&&Zo.f(Lu,Ru,{configurable:!0,value:Ca(null)});var ju,Mu,zu,Hu=function(e){Lu[Ru][e]=!0},Uu=Fo("iterator"),$u=!1;[].keys&&("next"in(zu=[].keys())?(Mu=tu(tu(zu)))!==Object.prototype&&(ju=Mu):$u=!0);var Vu=null==ju||Or((function(){var e={};return ju[Uu].call(e)!==e}));Vu&&(ju={}),Yr(ju[Uu])||wi(ju,Uu,(function(){return this}));var Gu={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:$u},Wu=Zo.f,qu=Fo("toStringTag"),Ku=function(e,t,n){e&&!Do(e=n?e:e.prototype,qu)&&Wu(e,qu,{configurable:!0,value:t})},Yu=Gu.IteratorPrototype,Xu=function(){return this},Zu=Ei.PROPER,Ju=Ei.CONFIGURABLE,Qu=Gu.IteratorPrototype,es=Gu.BUGGY_SAFARI_ITERATORS,ts=Fo("iterator"),ns=function(){return this},rs=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ca(Yu,{next:Pr(+!r,n)}),Ku(e,o,!1),mu[o]=Xu}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!es&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ts]||p["@@iterator"]||o&&p[o],v=!es&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=tu(g.call(new e)))!==Object.prototype&&u.next&&(tu(u)!==Qu&&(ou?ou(u,Qu):Yr(u[ts])||wi(u,ts,ns)),Ku(u,f,!0)),Zu&&"values"==o&&h&&"values"!==h.name&&(Ju?Jo(p,"name","values"):(d=!0,v=function(){return Nr(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(es||d||!(l in p))&&wi(p,l,s[l]);else Zi({target:t,proto:!0,forced:es||d},s);return p[ts]!==v&&wi(p,ts,v,{name:o}),mu[t]=v,s},os=gi.set,is=gi.getterFor("Array Iterator"),as=rs(Array,"Array",(function(e,t){os(this,{type:"Array Iterator",target:Kr(e),index:0,kind:t})}),(function(){var e=is(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mu.Arguments=mu.Array,Hu("keys"),Hu("values"),Hu("entries");var us=Wa.charAt,ss=gi.set,ls=gi.getterFor("String Iterator");rs(String,"String",(function(e){ss(this,{type:"String Iterator",string:aa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=us(n,r),t.index+=e.length,{value:e,done:!1})}));var cs,fs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=zo("span").classList,ps=ds&&ds.constructor&&ds.constructor.prototype,hs=ps===Object.prototype?void 0:ps,vs=Fo("iterator"),gs=Fo("toStringTag"),ys=as.values,ms=function(e,t){if(e){if(e[vs]!==ys)try{Jo(e,vs,ys)}catch(t){e[vs]=ys}if(e[gs]||Jo(e,gs,t),fs[t])for(var n in as)if(e[n]!==as[n])try{Jo(e,n,as[n])}catch(t){e[n]=as[n]}}};for(var bs in fs)ms(Ar[bs]&&Ar[bs].prototype,bs);if(ms(hs,"DOMTokenList"),"undefined"==typeof global){if("ActiveXObject"in window){"\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}Es(),ws()}else global&&(null===(cs=global.navigator)||void 0===cs?void 0:cs.userAgent.match("QQBrowser"))&&(Es(),ws());function Es(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ws(){void 0===Cr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Ss,Cs=Array.isArray||function(e){return"Array"==N(e)},Ds=function(){},As=[],Os=M("Reflect","construct"),xs=/^\s*(?:class|function)\b/,Ts=g(xs.exec),Ns=!xs.exec(Ds),ks=function(e){if(!y(e))return!1;try{return Os(Ds,As,e),!0}catch(e){return!1}},Bs=!Os||m((function(){var e;return ks(ks.call)||!ks(Object)||!ks((function(){e=!0}))||e}))?function(e){if(!y(e))return!1;switch(on(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ns||!!Ts(xs,xn(e))}:ks,Is=be("species"),Fs=a.Array,Ps=function(e,t){return new(function(e){var t;return Cs(e)&&(t=e.constructor,(Bs(t)&&(t===Fs||Cs(t.prototype))||R(t)&&null===(t=t[Is]))&&(t=void 0)),void 0===t?Fs:t}(e))(0===t?0:t)},_s=be("species"),Rs=be("isConcatSpreadable"),Ls=a.TypeError,js=q>=51||!m((function(){var e=[];return e[Rs]=!1,e.concat()[0]!==e})),Ms=(Ss="concat",q>=51||!m((function(){var e=[];return(e.constructor={})[_s]=function(){return{foo:1}},1!==e[Ss](Boolean).foo}))),zs=function(e){if(!R(e))return!1;var t=e[Rs];return void 0!==t?!!t:Cs(e)};Xe({target:"Array",proto:!0,forced:!js||!Ms},{concat:function(e){var t,n,r,o,i,a=se(this),u=Ps(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=ht(i))>9007199254740991)throw Ls("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Lt(u,s,i[n])}else{if(s>=9007199254740991)throw Ls("Maximum allowed index exceeded");Lt(u,s++,i)}return u.length=s,u}});var Hs=Dt.f,Us="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$s={f:function(e){return Us&&"Window"==N(e)?function(e){try{return Hs(e)}catch(e){return zt(Us)}}(e):Hs(_(e))}},Vs=g([].slice),Gs={f:be},Ws=We.f,qs=function(e){var t=L.Symbol||(L.Symbol={});ce(t,e)||Ws(t,e,{value:Gs.f(e)})},Ks=g([].push),Ys=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=se(s),v=I(h),g=Me(l,c),y=ht(v),m=0,b=f||Ps,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ks(E,d)}else switch(e){case 4:return!1;case 7:Ks(E,d)}return i?-1:r||o?o:E}},Xs={forEach:Ys(0),map:Ys(1),filter:Ys(2),some:Ys(3),every:Ys(4),find:Ys(5),findIndex:Ys(6),filterReject:Ys(7)}.forEach,Zs=Je("hidden"),Js=be("toPrimitive"),Qs=zn.set,el=zn.getterFor("Symbol"),tl=Object.prototype,nl=a.Symbol,rl=nl&&nl.prototype,ol=a.TypeError,il=a.QObject,al=M("JSON","stringify"),ul=ke.f,sl=We.f,ll=$s.f,cl=A.f,fl=g([].push),dl=ae("symbols"),pl=ae("op-symbols"),hl=ae("string-to-symbol-registry"),vl=ae("symbol-to-string-registry"),gl=ae("wks"),yl=!il||!il.prototype||!il.prototype.findChild,ml=b&&m((function(){return 7!=Rt(sl({},"a",{get:function(){return sl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ul(tl,t);r&&delete tl[t],sl(e,t,n),r&&e!==tl&&sl(tl,t,r)}:sl,bl=function(e,t){var n=dl[e]=Rt(rl);return Qs(n,{type:"Symbol",tag:e,description:t}),b||(n.description=t),n},El=function(e,t,n){e===tl&&El(pl,t,n),Ue(e);var r=Ce(t);return Ue(n),ce(dl,r)?(n.enumerable?(ce(e,Zs)&&e[Zs][r]&&(e[Zs][r]=!1),n=Rt(n,{enumerable:O(0,!1)})):(ce(e,Zs)||sl(e,Zs,O(1,{})),e[Zs][r]=!0),ml(e,r,n)):sl(e,r,n)},wl=function(e,t){Ue(e);var n=_(t),r=Tt(n).concat(Al(n));return Xs(r,(function(t){b&&!w(Sl,n,t)||El(e,t,n[t])})),e},Sl=function(e){var t=Ce(e),n=w(cl,this,t);return!(this===tl&&ce(dl,t)&&!ce(pl,t))&&(!(n||!ce(this,t)||!ce(dl,t)||ce(this,Zs)&&this[Zs][t])||n)},Cl=function(e,t){var n=_(e),r=Ce(t);if(n!==tl||!ce(dl,r)||ce(pl,r)){var o=ul(n,r);return!o||!ce(dl,r)||ce(n,Zs)&&n[Zs][r]||(o.enumerable=!0),o}},Dl=function(e){var t=ll(_(e)),n=[];return Xs(t,(function(e){ce(dl,e)||ce(yt,e)||fl(n,e)})),n},Al=function(e){var t=e===tl,n=ll(t?pl:_(e)),r=[];return Xs(n,(function(e){!ce(dl,e)||t&&!ce(tl,e)||fl(r,dl[e])})),r};if(K||(rl=(nl=function(){if(z(rl,this))throw ol("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?vn(arguments[0]):void 0,t=he(e),n=function(e){this===tl&&w(n,pl,e),ce(this,Zs)&&ce(this[Zs],t)&&(this[Zs][t]=!1),ml(this,t,O(1,e))};return b&&yl&&ml(tl,t,{configurable:!0,set:n}),bl(t,e)}).prototype,Gn(rl,"toString",(function(){return el(this).tag})),Gn(nl,"withoutSetter",(function(e){return bl(he(e),e)})),A.f=Sl,We.f=El,ke.f=Cl,Dt.f=$s.f=Dl,At.f=Al,Gs.f=function(e){return bl(be(e),e)},b&&sl(rl,"description",{configurable:!0,get:function(){return el(this).description}})),Xe({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:nl}),Xs(Tt(gl),(function(e){qs(e)})),Xe({target:"Symbol",stat:!0,forced:!K},{for:function(e){var t=vn(e);if(ce(hl,t))return hl[t];var n=nl(t);return hl[t]=n,vl[n]=t,n},keyFor:function(e){if(!Z(e))throw ol(e+" is not a symbol");if(ce(vl,e))return vl[e]},useSetter:function(){yl=!0},useSimple:function(){yl=!1}}),Xe({target:"Object",stat:!0,forced:!K,sham:!b},{create:function(e,t){return void 0===t?Rt(e):wl(Rt(e),t)},defineProperty:El,defineProperties:wl,getOwnPropertyDescriptor:Cl}),Xe({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:Dl,getOwnPropertySymbols:Al}),Xe({target:"Object",stat:!0,forced:m((function(){At.f(1)}))},{getOwnPropertySymbols:function(e){return At.f(se(e))}}),al){var Ol=!K||m((function(){var e=nl();return"[null]"!=al([e])||"{}"!=al({a:e})||"{}"!=al(Object(e))}));Xe({target:"JSON",stat:!0,forced:Ol},{stringify:function(e,t,n){var r=Vs(arguments),o=t;if((R(t)||void 0!==e)&&!Z(e))return Cs(t)||(t=function(e,t){if(y(o)&&(t=w(o,this,e,t)),!Z(t))return t}),r[1]=t,f(al,null,r)}})}if(!rl[Js]){var xl=rl.valueOf;Gn(rl,Js,(function(e){return w(xl,this)}))}Qn(nl,"Symbol"),yt[Zs]=!0,qs("asyncIterator"),qs("hasInstance"),qs("isConcatSpreadable"),qs("iterator"),qs("match"),qs("matchAll"),qs("replace"),qs("search"),qs("species"),qs("split"),qs("toPrimitive"),qs("toStringTag"),qs("unscopables"),Qn(a.JSON,"JSON",!0);var Tl=L.Symbol;qs("asyncDispose"),qs("dispose"),qs("matcher"),qs("metadata"),qs("observable"),qs("patternMatch"),qs("replaceAll");var Nl=Tl,kl=Gs.f("iterator"),Bl=n((function(e){function t(n){return"function"==typeof Nl&&"symbol"==typeof kl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Nl&&e.constructor===Nl&&e!==Nl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Il=t(Bl),Fl=Vo.f,Pl=Or((function(){Fl(1)}));if(Zi({target:"Object",stat:!0,forced:!xr||Pl,sham:!xr},{getOwnPropertyDescriptor:function(e,t){return Fl(Kr(e),t)}}),"object"===("undefined"==typeof global?"undefined":Il(global))){var _l=Object.getOwnPropertyDescriptor(global,"window");global.window&&!_l.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
|
|
1
|
+
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e){var t={exports:{}};return e(t,t.exports),t.exports}var r,o,i=function(e){return e&&e.Math==Math&&e},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=Function.prototype,s=u.apply,l=u.bind,c=u.call,f="object"==typeof Reflect&&Reflect.apply||(l?c.bind(s):function(){return c.apply(s,arguments)}),d=Function.prototype,p=d.bind,h=d.call,v=p&&p.bind(h),g=p?function(e){return e&&v(h,e)}:function(e){return e&&function(){return h.apply(e,arguments)}},y=function(e){return"function"==typeof e},m=function(e){try{return!!e()}catch(e){return!0}},b=!m((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),E=Function.prototype.call,w=E.bind?E.bind(E):function(){return E.apply(E,arguments)},S={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,D=C&&!S.call({1:2},1)?function(e){var t=C(this,e);return!!t&&t.enumerable}:S,A={f:D},x=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},O=g({}.toString),T=g("".slice),N=function(e){return T(O(e),8,-1)},k=a.Object,B=g("".split),I=m((function(){return!k("z").propertyIsEnumerable(0)}))?function(e){return"String"==N(e)?B(e,""):k(e)}:k,F=a.TypeError,P=function(e){if(null==e)throw F("Can't call method on "+e);return e},R=function(e){return I(P(e))},_=function(e){return"object"==typeof e?null!==e:y(e)},L={},j=function(e){return y(e)?e:void 0},M=function(e,t){return arguments.length<2?j(L[e])||j(a[e]):L[e]&&L[e][t]||a[e]&&a[e][t]},z=g({}.isPrototypeOf),H=M("navigator","userAgent")||"",U=a.process,$=a.Deno,V=U&&U.versions||$&&$.version,G=V&&V.v8;G&&(o=(r=G.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&H&&(!(r=H.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=H.match(/Chrome\/(\d+)/))&&(o=+r[1]);var W,q=o,K=!!Object.getOwnPropertySymbols&&!m((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&q&&q<41})),Y=K&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=a.Object,Z=Y?function(e){return"symbol"==typeof e}:function(e){var t=M("Symbol");return y(t)&&z(t.prototype,X(e))},J=a.String,Q=function(e){try{return J(e)}catch(e){return"Object"}},ee=a.TypeError,te=function(e){if(y(e))return e;throw ee(Q(e)+" is not a function")},ne=function(e,t){var n=e[t];return null==n?void 0:te(n)},re=a.TypeError,oe=Object.defineProperty,ie=a["__core-js_shared__"]||function(e,t){try{oe(a,e,{value:t,configurable:!0,writable:!0})}catch(n){a[e]=t}return t}("__core-js_shared__",{}),ae=n((function(e){(e.exports=function(e,t){return ie[e]||(ie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ue=a.Object,se=function(e){return ue(P(e))},le=g({}.hasOwnProperty),ce=Object.hasOwn||function(e,t){return le(se(e),t)},fe=0,de=Math.random(),pe=g(1..toString),he=function(e){return"Symbol("+(void 0===e?"":e)+")_"+pe(++fe+de,36)},ve=ae("wks"),ge=a.Symbol,ye=ge&&ge.for,me=Y?ge:ge&&ge.withoutSetter||he,be=function(e){if(!ce(ve,e)||!K&&"string"!=typeof ve[e]){var t="Symbol."+e;K&&ce(ge,e)?ve[e]=ge[e]:ve[e]=Y&&ye?ye(t):me(t)}return ve[e]},Ee=a.TypeError,we=be("toPrimitive"),Se=function(e,t){if(!_(e)||Z(e))return e;var n,r=ne(e,we);if(r){if(void 0===t&&(t="default"),n=w(r,e,t),!_(n)||Z(n))return n;throw Ee("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&y(n=e.toString)&&!_(r=w(n,e)))return r;if(y(n=e.valueOf)&&!_(r=w(n,e)))return r;if("string"!==t&&y(n=e.toString)&&!_(r=w(n,e)))return r;throw re("Can't convert object to primitive value")}(e,t)},Ce=function(e){var t=Se(e,"string");return Z(t)?t:t+""},De=a.document,Ae=_(De)&&_(De.createElement),xe=function(e){return Ae?De.createElement(e):{}},Oe=!b&&!m((function(){return 7!=Object.defineProperty(xe("div"),"a",{get:function(){return 7}}).a})),Te=Object.getOwnPropertyDescriptor,Ne=b?Te:function(e,t){if(e=R(e),t=Ce(t),Oe)try{return Te(e,t)}catch(e){}if(ce(e,t))return x(!w(A.f,e,t),e[t])},ke={f:Ne},Be=/#|\.prototype\./,Ie=function(e,t){var n=Pe[Fe(e)];return n==_e||n!=Re&&(y(t)?m(t):!!t)},Fe=Ie.normalize=function(e){return String(e).replace(Be,".").toLowerCase()},Pe=Ie.data={},Re=Ie.NATIVE="N",_e=Ie.POLYFILL="P",Le=Ie,je=g(g.bind),Me=function(e,t){return te(e),void 0===t?e:je?je(e,t):function(){return e.apply(t,arguments)}},ze=a.String,He=a.TypeError,Ue=function(e){if(_(e))return e;throw He(ze(e)+" is not an object")},$e=a.TypeError,Ve=Object.defineProperty,Ge=b?Ve:function(e,t,n){if(Ue(e),t=Ce(t),Ue(n),Oe)try{return Ve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $e("Accessors not supported");return"value"in n&&(e[t]=n.value),e},We={f:Ge},qe=b?function(e,t,n){return We.f(e,t,x(1,n))}:function(e,t,n){return e[t]=n,e},Ke=ke.f,Ye=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return f(e,this,arguments)};return t.prototype=e.prototype,t},Xe=function(e,t){var n,r,o,i,u,s,l,c,f=e.target,d=e.global,p=e.stat,h=e.proto,v=d?a:p?a[f]:(a[f]||{}).prototype,m=d?L:L[f]||qe(L,f,{})[f],b=m.prototype;for(o in t)n=!Le(d?o:f+(p?".":"#")+o,e.forced)&&v&&ce(v,o),u=m[o],n&&(s=e.noTargetGet?(c=Ke(v,o))&&c.value:v[o]),i=n&&s?s:t[o],n&&typeof u==typeof i||(l=e.bind&&n?Me(i,a):e.wrap&&n?Ye(i):h&&y(i)?g(i):i,(e.sham||i&&i.sham||u&&u.sham)&&qe(l,"sham",!0),qe(m,o,l),h&&(ce(L,r=f+"Prototype")||qe(L,r,{}),qe(L[r],o,i),e.real&&b&&!b[o]&&qe(b,o,i)))},Ze=ae("keys"),Je=function(e){return Ze[e]||(Ze[e]=he(e))},Qe=!m((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),et=Je("IE_PROTO"),tt=a.Object,nt=tt.prototype,rt=Qe?tt.getPrototypeOf:function(e){var t=se(e);if(ce(t,et))return t[et];var n=t.constructor;return y(n)&&t instanceof n?n.prototype:t instanceof tt?nt:null},ot=a.String,it=a.TypeError,at=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=g(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Ue(n),function(e){if("object"==typeof e||y(e))return e;throw it("Can't set "+ot(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ut=Math.ceil,st=Math.floor,lt=function(e){var t=+e;return t!=t||0===t?0:(t>0?st:ut)(t)},ct=Math.max,ft=Math.min,dt=function(e,t){var n=lt(e);return n<0?ct(n+t,0):ft(n,t)},pt=Math.min,ht=function(e){return(t=e.length)>0?pt(lt(t),9007199254740991):0;var t},vt=function(e){return function(t,n,r){var o,i=R(t),a=ht(i),u=dt(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},gt={includes:vt(!0),indexOf:vt(!1)},yt={},mt=gt.indexOf,bt=g([].push),Et=function(e,t){var n,r=R(e),o=0,i=[];for(n in r)!ce(yt,n)&&ce(r,n)&&bt(i,n);for(;t.length>o;)ce(r,n=t[o++])&&(~mt(i,n)||bt(i,n));return i},wt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],St=wt.concat("length","prototype"),Ct=Object.getOwnPropertyNames||function(e){return Et(e,St)},Dt={f:Ct},At={f:Object.getOwnPropertySymbols},xt=g([].concat),Ot=M("Reflect","ownKeys")||function(e){var t=Dt.f(Ue(e)),n=At.f;return n?xt(t,n(e)):t},Tt=Object.keys||function(e){return Et(e,wt)},Nt=b?Object.defineProperties:function(e,t){Ue(e);for(var n,r=R(t),o=Tt(t),i=o.length,a=0;i>a;)We.f(e,n=o[a++],r[n]);return e},kt=M("document","documentElement"),Bt=Je("IE_PROTO"),It=function(){},Ft=function(e){return"<script>"+e+"<\/script>"},Pt=function(e){e.write(Ft("")),e.close();var t=e.parentWindow.Object;return e=null,t},Rt=function(){try{W=new ActiveXObject("htmlfile")}catch(e){}var e,t;Rt="undefined"!=typeof document?document.domain&&W?Pt(W):((t=xe("iframe")).style.display="none",kt.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ft("document.F=Object")),e.close(),e.F):Pt(W);for(var n=wt.length;n--;)delete Rt.prototype[wt[n]];return Rt()};yt[Bt]=!0;var _t=Object.create||function(e,t){var n;return null!==e?(It.prototype=Ue(e),n=new It,It.prototype=null,n[Bt]=e):n=Rt(),void 0===t?n:Nt(n,t)},Lt=function(e,t,n){var r=Ce(t);r in e?We.f(e,r,x(0,n)):e[r]=n},jt=a.Array,Mt=Math.max,zt=function(e,t,n){for(var r=ht(e),o=dt(t,r),i=dt(void 0===n?r:n,r),a=jt(Mt(i-o,0)),u=0;o<i;o++,u++)Lt(a,u,e[o]);return a.length=u,a},Ht=g("".replace),Ut=g("".split),$t=g([].join),Vt=String(Error("zxcasd").stack),Gt=/\n\s*at [^:]*:[^\n]*/,Wt=Gt.test(Vt),qt=/@[^\n]*\n/.test(Vt)&&!/zxcasd/.test(Vt),Kt=function(e,t){if("string"!=typeof e)return e;if(Wt)for(;t--;)e=Ht(e,Gt,"");else if(qt)return $t(zt(Ut(e,"\n"),t),"\n");return e},Yt=function(e,t){_(t)&&"cause"in t&&qe(e,"cause",t.cause)},Xt={},Zt=be("iterator"),Jt=Array.prototype,Qt={};Qt[be("toStringTag")]="z";var en="[object z]"===String(Qt),tn=be("toStringTag"),nn=a.Object,rn="Arguments"==N(function(){return arguments}()),on=en?N:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=nn(e),tn))?n:rn?N(t):"Object"==(r=N(t))&&y(t.callee)?"Arguments":r},an=be("iterator"),un=function(e){if(null!=e)return ne(e,an)||ne(e,"@@iterator")||Xt[on(e)]},sn=a.TypeError,ln=function(e,t,n){var r,o;Ue(e);try{if(!(r=ne(e,"return"))){if("throw"===t)throw n;return n}r=w(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Ue(r),n},cn=a.TypeError,fn=function(e,t){this.stopped=e,this.result=t},dn=fn.prototype,pn=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=Me(t,c),v=function(e){return r&&ln(r,"normal",e),new fn(!0,e)},g=function(e){return f?(Ue(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=un(e)))throw cn(Q(e)+" is not iterable");if(function(e){return void 0!==e&&(Xt.Array===e||Jt[Zt]===e)}(o)){for(i=0,a=ht(e);a>i;i++)if((u=g(e[i]))&&z(dn,u))return u;return new fn(!1)}r=function(e,t){var n=arguments.length<2?un(e):t;if(te(n))return Ue(w(n,e));throw sn(Q(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=w(s,r)).done;){try{u=g(l.value)}catch(e){ln(r,"throw",e)}if("object"==typeof u&&u&&z(dn,u))return u}return new fn(!1)},hn=a.String,vn=function(e){if("Symbol"===on(e))throw TypeError("Cannot convert a Symbol value to a string");return hn(e)},gn=function(e,t){return void 0===e?arguments.length<2?"":t:vn(e)},yn=!m((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",x(1,7)),7!==e.stack)})),mn=be("toStringTag"),bn=a.Error,En=[].push,wn=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=z(Sn,this);at?n=at(new bn(void 0),o?rt(this):Sn):(n=o?this:_t(Sn),qe(n,mn,"Error")),qe(n,"message",gn(t,"")),yn&&qe(n,"stack",Kt(n.stack,1)),Yt(n,r);var i=[];return pn(e,En,{that:i}),qe(n,"errors",i),n};at?at(wn,bn):function(e,t){for(var n=Ot(t),r=We.f,o=ke.f,i=0;i<n.length;i++){var a=n[i];ce(e,a)||r(e,a,o(t,a))}}(wn,bn);var Sn=wn.prototype=_t(bn.prototype,{constructor:x(1,wn),message:x(1,""),name:x(1,"AggregateError")});Xe({global:!0},{AggregateError:wn});var Cn=g(Function.toString);y(ie.inspectSource)||(ie.inspectSource=function(e){return Cn(e)});var Dn,An,xn,On=ie.inspectSource,Tn=a.WeakMap,Nn=y(Tn)&&/native code/.test(On(Tn)),kn=a.TypeError,Bn=a.WeakMap;if(Nn||ie.state){var In=ie.state||(ie.state=new Bn),Fn=g(In.get),Pn=g(In.has),Rn=g(In.set);Dn=function(e,t){if(Pn(In,e))throw new kn("Object already initialized");return t.facade=e,Rn(In,e,t),t},An=function(e){return Fn(In,e)||{}},xn=function(e){return Pn(In,e)}}else{var _n=Je("state");yt[_n]=!0,Dn=function(e,t){if(ce(e,_n))throw new kn("Object already initialized");return t.facade=e,qe(e,_n,t),t},An=function(e){return ce(e,_n)?e[_n]:{}},xn=function(e){return ce(e,_n)}}var Ln,jn,Mn,zn={set:Dn,get:An,has:xn,enforce:function(e){return xn(e)?An(e):Dn(e,{})},getterFor:function(e){return function(t){var n;if(!_(t)||(n=An(t)).type!==e)throw kn("Incompatible receiver, "+e+" required");return n}}},Hn=Function.prototype,Un=b&&Object.getOwnPropertyDescriptor,$n=ce(Hn,"name"),Vn={EXISTS:$n,PROPER:$n&&"something"===function(){}.name,CONFIGURABLE:$n&&(!b||b&&Un(Hn,"name").configurable)},Gn=function(e,t,n,r){r&&r.enumerable?e[t]=n:qe(e,t,n)},Wn=be("iterator"),qn=!1;[].keys&&("next"in(Mn=[].keys())?(jn=rt(rt(Mn)))!==Object.prototype&&(Ln=jn):qn=!0);var Kn=null==Ln||m((function(){var e={};return Ln[Wn].call(e)!==e}));Ln=Kn?{}:_t(Ln),y(Ln[Wn])||Gn(Ln,Wn,(function(){return this}));var Yn={IteratorPrototype:Ln,BUGGY_SAFARI_ITERATORS:qn},Xn=en?{}.toString:function(){return"[object "+on(this)+"]"},Zn=We.f,Jn=be("toStringTag"),Qn=function(e,t,n,r){if(e){var o=n?e:e.prototype;ce(o,Jn)||Zn(o,Jn,{configurable:!0,value:t}),r&&!en&&qe(o,"toString",Xn)}},er=Yn.IteratorPrototype,tr=function(){return this},nr=Vn.PROPER,rr=Yn.BUGGY_SAFARI_ITERATORS,or=be("iterator"),ir=function(){return this},ar=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_t(er,{next:x(+!r,n)}),Qn(e,o,!1,!0),Xt[o]=tr}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!rr&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[or]||p["@@iterator"]||o&&p[o],v=!rr&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=rt(g.call(new e)))!==Object.prototype&&u.next&&(Qn(u,f,!0,!0),Xt[f]=ir),nr&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return w(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(rr||d||!(l in p))&&Gn(p,l,s[l]);else Xe({target:t,proto:!0,forced:rr||d},s);return a&&p[or]!==v&&Gn(p,or,v,{name:o}),Xt[t]=v,s},ur=zn.set,sr=zn.getterFor("Array Iterator");ar(Array,"Array",(function(e,t){ur(this,{type:"Array Iterator",target:R(e),index:0,kind:t})}),(function(){var e=sr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),Xt.Arguments=Xt.Array;var lr=g("".charAt),cr=g("".charCodeAt),fr=g("".slice),dr=function(e){return function(t,n){var r,o,i=vn(P(t)),a=lt(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cr(i,a))<55296||r>56319||a+1===u||(o=cr(i,a+1))<56320||o>57343?e?lr(i,a):r:e?fr(i,a,a+2):o-56320+(r-55296<<10)+65536}},pr={codeAt:dr(!1),charAt:dr(!0)}.charAt,hr=zn.set,vr=zn.getterFor("String Iterator");ar(String,"String",(function(e){hr(this,{type:"String Iterator",string:vn(e),index:0})}),(function(){var e,t=vr(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pr(n,r),t.index+=e.length,{value:e,done:!1})}));var gr=L.AggregateError,yr=be("toStringTag");for(var mr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var br=a[mr],Er=br&&br.prototype;Er&&on(Er)!==yr&&qe(Er,yr,mr),Xt[mr]=Xt.Array}var wr,Sr,Cr=gr,Dr=function(e){return e&&e.Math==Math&&e},Ar=Dr("object"==typeof globalThis&&globalThis)||Dr("object"==typeof window&&window)||Dr("object"==typeof self&&self)||Dr("object"==typeof e&&e)||function(){return this}()||Function("return this")(),xr=function(e){try{return!!e()}catch(e){return!0}},Or=!xr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Tr=Function.prototype.call,Nr=Tr.bind?Tr.bind(Tr):function(){return Tr.apply(Tr,arguments)},kr={}.propertyIsEnumerable,Br=Object.getOwnPropertyDescriptor,Ir=Br&&!kr.call({1:2},1)?function(e){var t=Br(this,e);return!!t&&t.enumerable}:kr,Fr={f:Ir},Pr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Function.prototype,_r=Rr.bind,Lr=Rr.call,jr=_r&&_r.bind(Lr),Mr=_r?function(e){return e&&jr(Lr,e)}:function(e){return e&&function(){return Lr.apply(e,arguments)}},zr=Mr({}.toString),Hr=Mr("".slice),Ur=function(e){return Hr(zr(e),8,-1)},$r=Ar.Object,Vr=Mr("".split),Gr=xr((function(){return!$r("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ur(e)?Vr(e,""):$r(e)}:$r,Wr=Ar.TypeError,qr=function(e){if(null==e)throw Wr("Can't call method on "+e);return e},Kr=function(e){return Gr(qr(e))},Yr=function(e){return"function"==typeof e},Xr=function(e){return"object"==typeof e?null!==e:Yr(e)},Zr=function(e){return Yr(e)?e:void 0},Jr=function(e,t){return arguments.length<2?Zr(Ar[e]):Ar[e]&&Ar[e][t]},Qr=Mr({}.isPrototypeOf),eo=Jr("navigator","userAgent")||"",to=Ar.process,no=Ar.Deno,ro=to&&to.versions||no&&no.version,oo=ro&&ro.v8;oo&&(Sr=(wr=oo.split("."))[0]>0&&wr[0]<4?1:+(wr[0]+wr[1])),!Sr&&eo&&(!(wr=eo.match(/Edge\/(\d+)/))||wr[1]>=74)&&(wr=eo.match(/Chrome\/(\d+)/))&&(Sr=+wr[1]);var io=Sr,ao=!!Object.getOwnPropertySymbols&&!xr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&io&&io<41})),uo=ao&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,so=Ar.Object,lo=uo?function(e){return"symbol"==typeof e}:function(e){var t=Jr("Symbol");return Yr(t)&&Qr(t.prototype,so(e))},co=Ar.String,fo=function(e){try{return co(e)}catch(e){return"Object"}},po=Ar.TypeError,ho=function(e){if(Yr(e))return e;throw po(fo(e)+" is not a function")},vo=function(e,t){var n=e[t];return null==n?void 0:ho(n)},go=Ar.TypeError,yo=Object.defineProperty,mo=function(e,t){try{yo(Ar,e,{value:t,configurable:!0,writable:!0})}catch(n){Ar[e]=t}return t},bo=Ar["__core-js_shared__"]||mo("__core-js_shared__",{}),Eo=n((function(e){(e.exports=function(e,t){return bo[e]||(bo[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wo=Ar.Object,So=function(e){return wo(qr(e))},Co=Mr({}.hasOwnProperty),Do=Object.hasOwn||function(e,t){return Co(So(e),t)},Ao=0,xo=Math.random(),Oo=Mr(1..toString),To=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Oo(++Ao+xo,36)},No=Eo("wks"),ko=Ar.Symbol,Bo=ko&&ko.for,Io=uo?ko:ko&&ko.withoutSetter||To,Fo=function(e){if(!Do(No,e)||!ao&&"string"!=typeof No[e]){var t="Symbol."+e;ao&&Do(ko,e)?No[e]=ko[e]:No[e]=uo&&Bo?Bo(t):Io(t)}return No[e]},Po=Ar.TypeError,Ro=Fo("toPrimitive"),_o=function(e,t){if(!Xr(e)||lo(e))return e;var n,r=vo(e,Ro);if(r){if(void 0===t&&(t="default"),n=Nr(r,e,t),!Xr(n)||lo(n))return n;throw Po("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;if(Yr(n=e.valueOf)&&!Xr(r=Nr(n,e)))return r;if("string"!==t&&Yr(n=e.toString)&&!Xr(r=Nr(n,e)))return r;throw go("Can't convert object to primitive value")}(e,t)},Lo=function(e){var t=_o(e,"string");return lo(t)?t:t+""},jo=Ar.document,Mo=Xr(jo)&&Xr(jo.createElement),zo=function(e){return Mo?jo.createElement(e):{}},Ho=!Or&&!xr((function(){return 7!=Object.defineProperty(zo("div"),"a",{get:function(){return 7}}).a})),Uo=Object.getOwnPropertyDescriptor,$o=Or?Uo:function(e,t){if(e=Kr(e),t=Lo(t),Ho)try{return Uo(e,t)}catch(e){}if(Do(e,t))return Pr(!Nr(Fr.f,e,t),e[t])},Vo={f:$o},Go=Ar.String,Wo=Ar.TypeError,qo=function(e){if(Xr(e))return e;throw Wo(Go(e)+" is not an object")},Ko=Ar.TypeError,Yo=Object.defineProperty,Xo=Or?Yo:function(e,t,n){if(qo(e),t=Lo(t),qo(n),Ho)try{return Yo(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ko("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Zo={f:Xo},Jo=Or?function(e,t,n){return Zo.f(e,t,Pr(1,n))}:function(e,t,n){return e[t]=n,e},Qo=Mr(Function.toString);Yr(bo.inspectSource)||(bo.inspectSource=function(e){return Qo(e)});var ei,ti,ni,ri=bo.inspectSource,oi=Ar.WeakMap,ii=Yr(oi)&&/native code/.test(ri(oi)),ai=Eo("keys"),ui=function(e){return ai[e]||(ai[e]=To(e))},si={},li=Ar.TypeError,ci=Ar.WeakMap;if(ii||bo.state){var fi=bo.state||(bo.state=new ci),di=Mr(fi.get),pi=Mr(fi.has),hi=Mr(fi.set);ei=function(e,t){if(pi(fi,e))throw new li("Object already initialized");return t.facade=e,hi(fi,e,t),t},ti=function(e){return di(fi,e)||{}},ni=function(e){return pi(fi,e)}}else{var vi=ui("state");si[vi]=!0,ei=function(e,t){if(Do(e,vi))throw new li("Object already initialized");return t.facade=e,Jo(e,vi,t),t},ti=function(e){return Do(e,vi)?e[vi]:{}},ni=function(e){return Do(e,vi)}}var gi={set:ei,get:ti,has:ni,enforce:function(e){return ni(e)?ti(e):ei(e,{})},getterFor:function(e){return function(t){var n;if(!Xr(t)||(n=ti(t)).type!==e)throw li("Incompatible receiver, "+e+" required");return n}}},yi=Function.prototype,mi=Or&&Object.getOwnPropertyDescriptor,bi=Do(yi,"name"),Ei={EXISTS:bi,PROPER:bi&&"something"===function(){}.name,CONFIGURABLE:bi&&(!Or||Or&&mi(yi,"name").configurable)},wi=n((function(e){var t=Ei.CONFIGURABLE,n=gi.get,r=gi.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Yr(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Do(i,"name")||t&&i.name!==f)&&Jo(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ar?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Jo(e,n,i)):l?e[n]=i:mo(n,i)})(Function.prototype,"toString",(function(){return Yr(this)&&n(this).source||ri(this)}))})),Si=Math.ceil,Ci=Math.floor,Di=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ci:Si)(t)},Ai=Math.max,xi=Math.min,Oi=function(e,t){var n=Di(e);return n<0?Ai(n+t,0):xi(n,t)},Ti=Math.min,Ni=function(e){return e>0?Ti(Di(e),9007199254740991):0},ki=function(e){return Ni(e.length)},Bi=function(e){return function(t,n,r){var o,i=Kr(t),a=ki(i),u=Oi(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Ii={includes:Bi(!0),indexOf:Bi(!1)}.indexOf,Fi=Mr([].push),Pi=function(e,t){var n,r=Kr(e),o=0,i=[];for(n in r)!Do(si,n)&&Do(r,n)&&Fi(i,n);for(;t.length>o;)Do(r,n=t[o++])&&(~Ii(i,n)||Fi(i,n));return i},Ri=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_i=Ri.concat("length","prototype"),Li=Object.getOwnPropertyNames||function(e){return Pi(e,_i)},ji={f:Li},Mi={f:Object.getOwnPropertySymbols},zi=Mr([].concat),Hi=Jr("Reflect","ownKeys")||function(e){var t=ji.f(qo(e)),n=Mi.f;return n?zi(t,n(e)):t},Ui=function(e,t){for(var n=Hi(t),r=Zo.f,o=Vo.f,i=0;i<n.length;i++){var a=n[i];Do(e,a)||r(e,a,o(t,a))}},$i=/#|\.prototype\./,Vi=function(e,t){var n=Wi[Gi(e)];return n==Ki||n!=qi&&(Yr(t)?xr(t):!!t)},Gi=Vi.normalize=function(e){return String(e).replace($i,".").toLowerCase()},Wi=Vi.data={},qi=Vi.NATIVE="N",Ki=Vi.POLYFILL="P",Yi=Vi,Xi=Vo.f,Zi=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ar:l?Ar[u]||mo(u,{}):(Ar[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Xi(n,r))&&a.value:n[r],!Yi(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ui(i,o)}(e.sham||o&&o.sham)&&Jo(i,"sham",!0),wi(n,r,i,e)}},Ji={};Ji[Fo("toStringTag")]="z";var Qi,ea="[object z]"===String(Ji),ta=Fo("toStringTag"),na=Ar.Object,ra="Arguments"==Ur(function(){return arguments}()),oa=ea?Ur:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=na(e),ta))?n:ra?Ur(t):"Object"==(r=Ur(t))&&Yr(t.callee)?"Arguments":r},ia=Ar.String,aa=function(e){if("Symbol"===oa(e))throw TypeError("Cannot convert a Symbol value to a string");return ia(e)},ua=function(){var e=qo(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},sa=Ar.RegExp,la=xr((function(){var e=sa("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ca=la||xr((function(){return!sa("a","y").sticky})),fa=la||xr((function(){var e=sa("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),da={BROKEN_CARET:fa,MISSED_STICKY:ca,UNSUPPORTED_Y:la},pa=Object.keys||function(e){return Pi(e,Ri)},ha=Or?Object.defineProperties:function(e,t){qo(e);for(var n,r=Kr(t),o=pa(t),i=o.length,a=0;i>a;)Zo.f(e,n=o[a++],r[n]);return e},va=Jr("document","documentElement"),ga=ui("IE_PROTO"),ya=function(){},ma=function(e){return"<script>"+e+"<\/script>"},ba=function(e){e.write(ma("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ea=function(){try{Qi=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ea="undefined"!=typeof document?document.domain&&Qi?ba(Qi):((t=zo("iframe")).style.display="none",va.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(ma("document.F=Object")),e.close(),e.F):ba(Qi);for(var n=Ri.length;n--;)delete Ea.prototype[Ri[n]];return Ea()};si[ga]=!0;var wa,Sa,Ca=Object.create||function(e,t){var n;return null!==e?(ya.prototype=qo(e),n=new ya,ya.prototype=null,n[ga]=e):n=Ea(),void 0===t?n:ha(n,t)},Da=Ar.RegExp,Aa=xr((function(){var e=Da(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),xa=Ar.RegExp,Oa=xr((function(){var e=xa("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Ta=gi.get,Na=Eo("native-string-replace",String.prototype.replace),ka=RegExp.prototype.exec,Ba=ka,Ia=Mr("".charAt),Fa=Mr("".indexOf),Pa=Mr("".replace),Ra=Mr("".slice),_a=(Sa=/b*/g,Nr(ka,wa=/a/,"a"),Nr(ka,Sa,"a"),0!==wa.lastIndex||0!==Sa.lastIndex),La=da.BROKEN_CARET,ja=void 0!==/()??/.exec("")[1];(_a||ja||La||Aa||Oa)&&(Ba=function(e){var t,n,r,o,i,a,u,s=this,l=Ta(s),c=aa(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Nr(Ba,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=La&&s.sticky,h=Nr(ua,s),v=s.source,g=0,y=c;if(p&&(h=Pa(h,"y",""),-1===Fa(h,"g")&&(h+="g"),y=Ra(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Ia(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ja&&(n=new RegExp("^"+v+"$(?!\\s)",h)),_a&&(r=s.lastIndex),o=Nr(ka,p?n:s,y),p?o?(o.input=Ra(o.input,g),o[0]=Ra(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:_a&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ja&&o&&o.length>1&&Nr(Na,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ca(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ma=Ba;Zi({target:"RegExp",proto:!0,forced:/./.exec!==Ma},{exec:Ma});var za=Fo("species"),Ha=RegExp.prototype,Ua=Mr("".charAt),$a=Mr("".charCodeAt),Va=Mr("".slice),Ga=function(e){return function(t,n){var r,o,i=aa(qr(t)),a=Di(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=$a(i,a))<55296||r>56319||a+1===u||(o=$a(i,a+1))<56320||o>57343?e?Ua(i,a):r:e?Va(i,a,a+2):o-56320+(r-55296<<10)+65536}},Wa={codeAt:Ga(!1),charAt:Ga(!0)},qa=Wa.charAt,Ka=function(e,t,n){return t+(n?qa(e,t).length:1)},Ya=Ar.TypeError,Xa=function(e,t){var n=e.exec;if(Yr(n)){var r=Nr(n,e,t);return null!==r&&qo(r),r}if("RegExp"===Ur(e))return Nr(Ma,e,t);throw Ya("RegExp#exec called on incompatible receiver")};!function(e,t,n,r){var o=Fo(e),i=!xr((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!xr((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[za]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=Mr(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=Mr(e),s=t.exec;return s===Ma||s===Ha.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));wi(String.prototype,e,s[0]),wi(Ha,o,s[1])}r&&Jo(Ha[o],"sham",!0)}("match",(function(e,t,n){return[function(t){var n=qr(this),r=null==t?void 0:vo(t,e);return r?Nr(r,t,n):new RegExp(t)[e](aa(n))},function(e){var r=qo(this),o=aa(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return Xa(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=Xa(r,o));){var c=aa(u[0]);s[l]=c,""===c&&(r.lastIndex=Ka(o,Ni(r.lastIndex),a)),l++}return 0===l?null:s}]})),Zi({global:!0},{globalThis:Ar});var Za=!xr((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ja=ui("IE_PROTO"),Qa=Ar.Object,eu=Qa.prototype,tu=Za?Qa.getPrototypeOf:function(e){var t=So(e);if(Do(t,Ja))return t[Ja];var n=t.constructor;return Yr(n)&&t instanceof n?n.prototype:t instanceof Qa?eu:null},nu=Ar.String,ru=Ar.TypeError,ou=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Mr(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return qo(n),function(e){if("object"==typeof e||Yr(e))return e;throw ru("Can't set "+nu(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),iu=Ar.Array,au=Math.max,uu=Mr("".replace),su=Mr("".split),lu=Mr([].join),cu=String(Error("zxcasd").stack),fu=/\n\s*at [^:]*:[^\n]*/,du=fu.test(cu),pu=/@[^\n]*\n/.test(cu)&&!/zxcasd/.test(cu),hu=function(e,t){if("string"!=typeof e)return e;if(du)for(;t--;)e=uu(e,fu,"");else if(pu)return lu(function(e,t,n){for(var r,o,i,a,u=ki(e),s=Oi(t,u),l=Oi(void 0===n?u:n,u),c=iu(au(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],a=void 0,(a=Lo(o))in r?Zo.f(r,a,Pr(0,i)):r[a]=i;return c.length=f,c}(su(e,"\n"),t),"\n");return e},vu=function(e,t){Xr(t)&&"cause"in t&&Jo(e,"cause",t.cause)},gu=Mr(Mr.bind),yu=function(e,t){return ho(e),void 0===t?e:gu?gu(e,t):function(){return e.apply(t,arguments)}},mu={},bu=Fo("iterator"),Eu=Array.prototype,wu=Fo("iterator"),Su=function(e){if(null!=e)return vo(e,wu)||vo(e,"@@iterator")||mu[oa(e)]},Cu=Ar.TypeError,Du=function(e,t,n){var r,o;qo(e);try{if(!(r=vo(e,"return"))){if("throw"===t)throw n;return n}r=Nr(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return qo(r),n},Au=Ar.TypeError,xu=function(e,t){this.stopped=e,this.result=t},Ou=xu.prototype,Tu=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=yu(t,c),v=function(e){return r&&Du(r,"normal",e),new xu(!0,e)},g=function(e){return f?(qo(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=Su(e)))throw Au(fo(e)+" is not iterable");if(function(e){return void 0!==e&&(mu.Array===e||Eu[bu]===e)}(o)){for(i=0,a=ki(e);a>i;i++)if((u=g(e[i]))&&Qr(Ou,u))return u;return new xu(!1)}r=function(e,t){var n=arguments.length<2?Su(e):t;if(ho(n))return qo(Nr(n,e));throw Cu(fo(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Nr(s,r)).done;){try{u=g(l.value)}catch(e){Du(r,"throw",e)}if("object"==typeof u&&u&&Qr(Ou,u))return u}return new xu(!1)},Nu=function(e,t){return void 0===e?arguments.length<2?"":t:aa(e)},ku=!xr((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Pr(1,7)),7!==e.stack)})),Bu=Fo("toStringTag"),Iu=Ar.Error,Fu=[].push,Pu=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,o=Qr(Ru,this);ou?n=ou(new Iu(void 0),o?tu(this):Ru):(n=o?this:Ca(Ru),Jo(n,Bu,"Error")),Jo(n,"message",Nu(t,"")),ku&&Jo(n,"stack",hu(n.stack,1)),vu(n,r);var i=[];return Tu(e,Fu,{that:i}),Jo(n,"errors",i),n};ou?ou(Pu,Iu):Ui(Pu,Iu);var Ru=Pu.prototype=Ca(Iu.prototype,{constructor:Pr(1,Pu),message:Pr(1,""),name:Pr(1,"AggregateError")});Zi({global:!0},{AggregateError:Pu});var _u=Fo("unscopables"),Lu=Array.prototype;null==Lu[_u]&&Zo.f(Lu,_u,{configurable:!0,value:Ca(null)});var ju,Mu,zu,Hu=function(e){Lu[_u][e]=!0},Uu=Fo("iterator"),$u=!1;[].keys&&("next"in(zu=[].keys())?(Mu=tu(tu(zu)))!==Object.prototype&&(ju=Mu):$u=!0);var Vu=null==ju||xr((function(){var e={};return ju[Uu].call(e)!==e}));Vu&&(ju={}),Yr(ju[Uu])||wi(ju,Uu,(function(){return this}));var Gu={IteratorPrototype:ju,BUGGY_SAFARI_ITERATORS:$u},Wu=Zo.f,qu=Fo("toStringTag"),Ku=function(e,t,n){e&&!Do(e=n?e:e.prototype,qu)&&Wu(e,qu,{configurable:!0,value:t})},Yu=Gu.IteratorPrototype,Xu=function(){return this},Zu=Ei.PROPER,Ju=Ei.CONFIGURABLE,Qu=Gu.IteratorPrototype,es=Gu.BUGGY_SAFARI_ITERATORS,ts=Fo("iterator"),ns=function(){return this},rs=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ca(Yu,{next:Pr(+!r,n)}),Ku(e,o,!1),mu[o]=Xu}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!es&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ts]||p["@@iterator"]||o&&p[o],v=!es&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=tu(g.call(new e)))!==Object.prototype&&u.next&&(tu(u)!==Qu&&(ou?ou(u,Qu):Yr(u[ts])||wi(u,ts,ns)),Ku(u,f,!0)),Zu&&"values"==o&&h&&"values"!==h.name&&(Ju?Jo(p,"name","values"):(d=!0,v=function(){return Nr(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(es||d||!(l in p))&&wi(p,l,s[l]);else Zi({target:t,proto:!0,forced:es||d},s);return p[ts]!==v&&wi(p,ts,v,{name:o}),mu[t]=v,s},os=gi.set,is=gi.getterFor("Array Iterator"),as=rs(Array,"Array",(function(e,t){os(this,{type:"Array Iterator",target:Kr(e),index:0,kind:t})}),(function(){var e=is(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");mu.Arguments=mu.Array,Hu("keys"),Hu("values"),Hu("entries");var us=Wa.charAt,ss=gi.set,ls=gi.getterFor("String Iterator");rs(String,"String",(function(e){ss(this,{type:"String Iterator",string:aa(e),index:0})}),(function(){var e,t=ls(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=us(n,r),t.index+=e.length,{value:e,done:!1})}));var cs,fs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ds=zo("span").classList,ps=ds&&ds.constructor&&ds.constructor.prototype,hs=ps===Object.prototype?void 0:ps,vs=Fo("iterator"),gs=Fo("toStringTag"),ys=as.values,ms=function(e,t){if(e){if(e[vs]!==ys)try{Jo(e,vs,ys)}catch(t){e[vs]=ys}if(e[gs]||Jo(e,gs,t),fs[t])for(var n in as)if(e[n]!==as[n])try{Jo(e,n,as[n])}catch(t){e[n]=as[n]}}};for(var bs in fs)ms(Ar[bs]&&Ar[bs].prototype,bs);if(ms(hs,"DOMTokenList"),"undefined"==typeof global){if("ActiveXObject"in window){"\n Sorry, wangEditor V5+ versions do not support IE browser.",console.error("抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器\n Sorry, wangEditor V5+ versions do not support IE browser.")}Es(),ws()}else global&&(null===(cs=global.navigator)||void 0===cs?void 0:cs.userAgent.match("QQBrowser"))&&(Es(),ws());function Es(){"undefined"==typeof globalThis&&(window.globalThis=window)}function ws(){void 0===Cr&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}var Ss,Cs=Array.isArray||function(e){return"Array"==N(e)},Ds=function(){},As=[],xs=M("Reflect","construct"),Os=/^\s*(?:class|function)\b/,Ts=g(Os.exec),Ns=!Os.exec(Ds),ks=function(e){if(!y(e))return!1;try{return xs(Ds,As,e),!0}catch(e){return!1}},Bs=!xs||m((function(){var e;return ks(ks.call)||!ks(Object)||!ks((function(){e=!0}))||e}))?function(e){if(!y(e))return!1;switch(on(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ns||!!Ts(Os,On(e))}:ks,Is=be("species"),Fs=a.Array,Ps=function(e,t){return new(function(e){var t;return Cs(e)&&(t=e.constructor,(Bs(t)&&(t===Fs||Cs(t.prototype))||_(t)&&null===(t=t[Is]))&&(t=void 0)),void 0===t?Fs:t}(e))(0===t?0:t)},Rs=be("species"),_s=be("isConcatSpreadable"),Ls=a.TypeError,js=q>=51||!m((function(){var e=[];return e[_s]=!1,e.concat()[0]!==e})),Ms=(Ss="concat",q>=51||!m((function(){var e=[];return(e.constructor={})[Rs]=function(){return{foo:1}},1!==e[Ss](Boolean).foo}))),zs=function(e){if(!_(e))return!1;var t=e[_s];return void 0!==t?!!t:Cs(e)};Xe({target:"Array",proto:!0,forced:!js||!Ms},{concat:function(e){var t,n,r,o,i,a=se(this),u=Ps(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(zs(i=-1===t?a:arguments[t])){if(s+(o=ht(i))>9007199254740991)throw Ls("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&Lt(u,s,i[n])}else{if(s>=9007199254740991)throw Ls("Maximum allowed index exceeded");Lt(u,s++,i)}return u.length=s,u}});var Hs=Dt.f,Us="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$s={f:function(e){return Us&&"Window"==N(e)?function(e){try{return Hs(e)}catch(e){return zt(Us)}}(e):Hs(R(e))}},Vs=g([].slice),Gs={f:be},Ws=We.f,qs=function(e){var t=L.Symbol||(L.Symbol={});ce(t,e)||Ws(t,e,{value:Gs.f(e)})},Ks=g([].push),Ys=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=se(s),v=I(h),g=Me(l,c),y=ht(v),m=0,b=f||Ps,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Ks(E,d)}else switch(e){case 4:return!1;case 7:Ks(E,d)}return i?-1:r||o?o:E}},Xs={forEach:Ys(0),map:Ys(1),filter:Ys(2),some:Ys(3),every:Ys(4),find:Ys(5),findIndex:Ys(6),filterReject:Ys(7)}.forEach,Zs=Je("hidden"),Js=be("toPrimitive"),Qs=zn.set,el=zn.getterFor("Symbol"),tl=Object.prototype,nl=a.Symbol,rl=nl&&nl.prototype,ol=a.TypeError,il=a.QObject,al=M("JSON","stringify"),ul=ke.f,sl=We.f,ll=$s.f,cl=A.f,fl=g([].push),dl=ae("symbols"),pl=ae("op-symbols"),hl=ae("string-to-symbol-registry"),vl=ae("symbol-to-string-registry"),gl=ae("wks"),yl=!il||!il.prototype||!il.prototype.findChild,ml=b&&m((function(){return 7!=_t(sl({},"a",{get:function(){return sl(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ul(tl,t);r&&delete tl[t],sl(e,t,n),r&&e!==tl&&sl(tl,t,r)}:sl,bl=function(e,t){var n=dl[e]=_t(rl);return Qs(n,{type:"Symbol",tag:e,description:t}),b||(n.description=t),n},El=function(e,t,n){e===tl&&El(pl,t,n),Ue(e);var r=Ce(t);return Ue(n),ce(dl,r)?(n.enumerable?(ce(e,Zs)&&e[Zs][r]&&(e[Zs][r]=!1),n=_t(n,{enumerable:x(0,!1)})):(ce(e,Zs)||sl(e,Zs,x(1,{})),e[Zs][r]=!0),ml(e,r,n)):sl(e,r,n)},wl=function(e,t){Ue(e);var n=R(t),r=Tt(n).concat(Al(n));return Xs(r,(function(t){b&&!w(Sl,n,t)||El(e,t,n[t])})),e},Sl=function(e){var t=Ce(e),n=w(cl,this,t);return!(this===tl&&ce(dl,t)&&!ce(pl,t))&&(!(n||!ce(this,t)||!ce(dl,t)||ce(this,Zs)&&this[Zs][t])||n)},Cl=function(e,t){var n=R(e),r=Ce(t);if(n!==tl||!ce(dl,r)||ce(pl,r)){var o=ul(n,r);return!o||!ce(dl,r)||ce(n,Zs)&&n[Zs][r]||(o.enumerable=!0),o}},Dl=function(e){var t=ll(R(e)),n=[];return Xs(t,(function(e){ce(dl,e)||ce(yt,e)||fl(n,e)})),n},Al=function(e){var t=e===tl,n=ll(t?pl:R(e)),r=[];return Xs(n,(function(e){!ce(dl,e)||t&&!ce(tl,e)||fl(r,dl[e])})),r};if(K||(rl=(nl=function(){if(z(rl,this))throw ol("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?vn(arguments[0]):void 0,t=he(e),n=function(e){this===tl&&w(n,pl,e),ce(this,Zs)&&ce(this[Zs],t)&&(this[Zs][t]=!1),ml(this,t,x(1,e))};return b&&yl&&ml(tl,t,{configurable:!0,set:n}),bl(t,e)}).prototype,Gn(rl,"toString",(function(){return el(this).tag})),Gn(nl,"withoutSetter",(function(e){return bl(he(e),e)})),A.f=Sl,We.f=El,ke.f=Cl,Dt.f=$s.f=Dl,At.f=Al,Gs.f=function(e){return bl(be(e),e)},b&&sl(rl,"description",{configurable:!0,get:function(){return el(this).description}})),Xe({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:nl}),Xs(Tt(gl),(function(e){qs(e)})),Xe({target:"Symbol",stat:!0,forced:!K},{for:function(e){var t=vn(e);if(ce(hl,t))return hl[t];var n=nl(t);return hl[t]=n,vl[n]=t,n},keyFor:function(e){if(!Z(e))throw ol(e+" is not a symbol");if(ce(vl,e))return vl[e]},useSetter:function(){yl=!0},useSimple:function(){yl=!1}}),Xe({target:"Object",stat:!0,forced:!K,sham:!b},{create:function(e,t){return void 0===t?_t(e):wl(_t(e),t)},defineProperty:El,defineProperties:wl,getOwnPropertyDescriptor:Cl}),Xe({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:Dl,getOwnPropertySymbols:Al}),Xe({target:"Object",stat:!0,forced:m((function(){At.f(1)}))},{getOwnPropertySymbols:function(e){return At.f(se(e))}}),al){var xl=!K||m((function(){var e=nl();return"[null]"!=al([e])||"{}"!=al({a:e})||"{}"!=al(Object(e))}));Xe({target:"JSON",stat:!0,forced:xl},{stringify:function(e,t,n){var r=Vs(arguments),o=t;if((_(t)||void 0!==e)&&!Z(e))return Cs(t)||(t=function(e,t){if(y(o)&&(t=w(o,this,e,t)),!Z(t))return t}),r[1]=t,f(al,null,r)}})}if(!rl[Js]){var Ol=rl.valueOf;Gn(rl,Js,(function(e){return w(Ol,this)}))}Qn(nl,"Symbol"),yt[Zs]=!0,qs("asyncIterator"),qs("hasInstance"),qs("isConcatSpreadable"),qs("iterator"),qs("match"),qs("matchAll"),qs("replace"),qs("search"),qs("species"),qs("split"),qs("toPrimitive"),qs("toStringTag"),qs("unscopables"),Qn(a.JSON,"JSON",!0);var Tl=L.Symbol;qs("asyncDispose"),qs("dispose"),qs("matcher"),qs("metadata"),qs("observable"),qs("patternMatch"),qs("replaceAll");var Nl=Tl,kl=Gs.f("iterator"),Bl=n((function(e){function t(n){return"function"==typeof Nl&&"symbol"==typeof kl?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof Nl&&e.constructor===Nl&&e!==Nl.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),Il=t(Bl),Fl=Vo.f,Pl=xr((function(){Fl(1)}));if(Zi({target:"Object",stat:!0,forced:!Or||Pl,sham:!Or},{getOwnPropertyDescriptor:function(e,t){return Fl(Kr(e),t)}}),"object"===("undefined"==typeof global?"undefined":Il(global))){var Rl=Object.getOwnPropertyDescriptor(global,"window");global.window&&!Rl.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),null!=global.document&&null==global.document.getElementsByTagName&&(global.document.getElementsByTagName=function(){return[]})}
|
|
2
2
|
/*!
|
|
3
3
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
6
|
* Released under the MIT License.
|
|
7
|
-
*/function Rl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ll(e){var t,n;return!1!==Rl(e)&&(void 0===(t=e.constructor)||!1!==Rl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function jl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ml(e){return!!e&&!!e[Dc]}function zl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ac}(e)||Array.isArray(e)||!!e[Cc]||!!e.constructor[Cc]||Gl(e)||Wl(e))}function Hl(e,t,n){void 0===n&&(n=!1),0===Ul(e)?(n?Object.keys:Oc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ul(e){var t=e[Dc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Gl(e)?2:Wl(e)?3:0}function $l(e,t){return 2===Ul(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t,n){var r=Ul(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Gl(e){return bc&&e instanceof Map}function Wl(e){return Ec&&e instanceof Set}function ql(e){return e.o||e.t}function Kl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xc(e);delete t[Dc];for(var n=Oc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Yl(e,t){return void 0===t&&(t=!1),Zl(e)||Ml(e)||!zl(e)||(Ul(e)>1&&(e.set=e.add=e.clear=e.delete=Xl),Object.freeze(e),t&&Hl(e,(function(e,t){return Yl(t,!0)}),!0)),e}function Xl(){jl(2)}function Zl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Jl(e){var t=Tc[e];return t||jl(18,e),t}function Ql(){return yc}function ec(e,t){t&&(Jl("Patches"),e.u=[],e.s=[],e.v=t)}function tc(e){nc(e),e.p.forEach(oc),e.p=null}function nc(e){e===yc&&(yc=e.l)}function rc(e){return yc={p:[],l:yc,h:e,m:!0,_:0}}function oc(e){var t=e[Dc];0===t.i||1===t.i?t.j():t.O=!0}function ic(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Jl("ES5").S(t,e,r),r?(n[Dc].P&&(tc(t),jl(4)),zl(e)&&(e=ac(t,e),t.l||sc(t,e)),t.u&&Jl("Patches").M(n[Dc],e,t.u,t.s)):e=ac(t,n,[]),tc(t),t.u&&t.v(t.u,t.s),e!==Sc?e:void 0}function ac(e,t,n){if(Zl(t))return t;var r=t[Dc];if(!r)return Hl(t,(function(o,i){return uc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return sc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Kl(r.k):r.o;Hl(3===r.i?new Set(o):o,(function(t,i){return uc(e,r,o,t,i,n)})),sc(e,o,!1),n&&e.u&&Jl("Patches").R(r,n,e.u,e.s)}return r.o}function uc(e,t,n,r,o,i){if(Ml(o)){var a=ac(e,o,i&&t&&3!==t.i&&!$l(t.D,r)?i.concat(r):void 0);if(Vl(n,r,a),!Ml(a))return;e.m=!1}if(zl(o)&&!Zl(o)){if(!e.h.F&&e._<1)return;ac(e,o),t&&t.A.l||sc(e,o)}}function sc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Yl(t,n)}function lc(e,t){var n=e[Dc];return(n?ql(n):e)[t]}function cc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fc(e){e.P||(e.P=!0,e.l&&fc(e.l))}function dc(e){e.o||(e.o=Kl(e.t))}function pc(e,t,n){var r=Gl(t)?Jl("MapSet").N(t,n):Wl(t)?Jl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ql(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Nc;n&&(o=[r],i=kc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Jl("ES5").J(t,n);return(n?n.A:Ql()).p.push(r),r}function hc(e){return Ml(e)||jl(22,e),function e(t){if(!zl(t))return t;var n,r=t[Dc],o=Ul(t);if(r){if(!r.P&&(r.i<4||!Jl("ES5").K(r)))return r.t;r.I=!0,n=vc(t,o),r.I=!1}else n=vc(t,o);return Hl(n,(function(t,o){r&&function(e,t){return 2===Ul(e)?e.get(t):e[t]}(r.t,t)===o||Vl(n,t,e(o))})),3===o?new Set(n):n}(e)}function vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Kl(e)}var gc,yc,mc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),bc="undefined"!=typeof Map,Ec="undefined"!=typeof Set,wc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Sc=mc?Symbol.for("immer-nothing"):((gc={})["immer-nothing"]=!0,gc),Cc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Dc=mc?Symbol.for("immer-state"):"__$immer_state",Ac=""+Object.prototype.constructor,Oc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xc=Object.getOwnPropertyDescriptors||function(e){var t={};return Oc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Tc={},Nc={get:function(e,t){if(t===Dc)return e;var n=ql(e);if(!$l(n,t))return function(e,t,n){var r,o=cc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!zl(r)?r:r===lc(e.t,t)?(dc(e),e.o[t]=pc(e.A.h,r,e)):r},has:function(e,t){return t in ql(e)},ownKeys:function(e){return Reflect.ownKeys(ql(e))},set:function(e,t,n){var r=cc(ql(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=lc(ql(e),t),i=null==o?void 0:o[Dc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||$l(e.t,t)))return!0;dc(e),fc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==lc(e.t,t)||t in e.t?(e.D[t]=!1,dc(e),fc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){jl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jl(12)}},kc={};Hl(Nc,(function(e,t){kc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),kc.deleteProperty=function(e,t){return Nc.deleteProperty.call(this,e[0],t)},kc.set=function(e,t,n){return Nc.set.call(this,e[0],t,n,e[0])};var Bc=function(){function e(e){var t=this;this.g=wc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&jl(6),void 0!==r&&"function"!=typeof r&&jl(7),zl(e)){var u=rc(t),s=pc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?tc(u):nc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ec(u,r),ic(e,u)}),(function(e){throw tc(u),e})):(ec(u,r),ic(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Sc)return;return void 0===a&&(a=e),t.F&&Yl(a,!0),a}jl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){zl(e)||jl(8),Ml(e)&&(e=hc(e));var t=rc(this),n=pc(this,e,void 0);return n[Dc].C=!0,nc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Dc]).A;return ec(n,t),ic(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!wc&&jl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Jl("Patches").$;return Ml(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ic=new Bc,Fc=Ic.produce;Ic.produceWithPatches.bind(Ic),Ic.setAutoFreeze.bind(Ic),Ic.setUseProxies.bind(Ic),Ic.applyPatches.bind(Ic);var Pc=Ic.createDraft.bind(Ic),_c=Ic.finishDraft.bind(Ic);function Rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lc=new WeakMap,jc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,Hc=new WeakMap,Uc=new WeakMap;function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Nf.pathRefs(e))zf.transform(n,t);for(var r of Nf.pointRefs(e))Vf.transform(r,t);for(var o of Nf.rangeRefs(e))Kf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Lc.get(e)||[],l=Wc(t);for(var c of s){u(Mf.transform(c,t))}for(var f of l)u(f);Lc.set(e,a),md.transform(e,t),e.operations.push(t),Nf.normalize(e),"set_selection"===t.type&&(e.marks=null),jc.get(e)||(jc.set(e,!0),Promise.resolve().then((()=>{jc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(qf.isExpanded(r))md.setNodes(e,{[t]:n},{match:ed.isText,split:!0});else{var o=Vc(Vc({},Nf.marks(e)||{}),{},{[t]:n});e.marks=o,jc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&qf.isExpanded(n)&&md.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?_f.fragment(e,t):[]},insertBreak:()=>{md.splitNodes(e,{always:!0})},insertFragment:t=>{md.insertFragment(e,t)},insertNode:t=>{md.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Vc({text:t},r);md.insertNodes(e,o)}else md.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ed.isText(n))if(Cf.isElement(n)&&0===n.children.length){md.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!Nf.isEditor(n)&&(Cf.isElement(n)&&(e.isInline(n)||0===n.children.length||ed.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var u=_f.get(e,r);if(!ed.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;if((ed.isText(s)||Cf.isElement(s)&&e.isInline(s))!==o)md.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Cf.isElement(s)){if(e.isInline(s))if(null!=l&&ed.isText(l)){if(c){md.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{md.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=l&&ed.isText(l)&&(ed.equals(s,l,{loose:!0})?(md.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(md.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(md.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(qf.isExpanded(n))md.unsetNodes(e,t,{match:ed.isText,split:!0});else{var r=Vc({},Nf.marks(e)||{});delete r[t],e.marks=r,jc.get(e)||e.onChange()}}};return e},Wc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Mf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Mf.levels(r),i=ed.isText(n)?[]:Array.from(_f.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Mf.ancestors(a),Mf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Mf.equals(u,s))return[];var l=[],c=[];for(var f of Mf.ancestors(u)){var d=Mf.transform(f,e);l.push(d)}for(var p of Mf.ancestors(s)){var h=Mf.transform(p,e);c.push(h)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Mf.ancestors(m)];case"split_node":var{path:b}=e;return[...Mf.levels(b),Mf.next(b)];default:return[]}};function qc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kc,Yc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?tf(e):e,o=Kc.None,i=Kc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=hf(s,l);if([o,i]=n?[i,c]:[c,o],vf(o,Kc.ZWJ)&&vf(i,Kc.ExtPict)&&!bf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(vf(o,Kc.RI)&&vf(i,Kc.RI)&&!(u=null!==u?!u:!!n||wf(e.substring(0,e.length-a))))break;if(o!==Kc.None&&i!==Kc.None&&yf(o,i))break;a+=s.length}return a||1},Xc=/\s/,Zc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Jc=/['\u2018\u2019]/,Qc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ef=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Xc.test(t))return!1;if(Jc.test(t)){var o=Yc(n,r),[i,a]=Qc(n,o,r);if(e(i,a,r))return!0}return!Zc.test(t)},tf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(rf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(nf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},nf=e=>e>=55296&&e<=56319,rf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Kc||(Kc={}));var of=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,af=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,sf=/^[\u1100-\u115F\uA960-\uA97C]$/,lf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ff=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,df=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,hf=(e,t)=>{var n=Kc.Any;return-1!==e.search(of)&&(n|=Kc.Extend),8205===t&&(n|=Kc.ZWJ),t>=127462&&t<=127487&&(n|=Kc.RI),-1!==e.search(af)&&(n|=Kc.Prepend),-1!==e.search(uf)&&(n|=Kc.SpacingMark),-1!==e.search(sf)&&(n|=Kc.L),-1!==e.search(lf)&&(n|=Kc.V),-1!==e.search(cf)&&(n|=Kc.T),-1!==e.search(ff)&&(n|=Kc.LV),-1!==e.search(df)&&(n|=Kc.LVT),-1!==e.search(pf)&&(n|=Kc.ExtPict),n};function vf(e,t){return 0!=(e&t)}var gf=[[Kc.L,Kc.L|Kc.V|Kc.LV|Kc.LVT],[Kc.LV|Kc.V,Kc.V|Kc.T],[Kc.LVT|Kc.T,Kc.T],[Kc.Any,Kc.Extend|Kc.ZWJ],[Kc.Any,Kc.SpacingMark],[Kc.Prepend,Kc.Any],[Kc.ZWJ,Kc.ExtPict],[Kc.RI,Kc.RI]];function yf(e,t){return-1===gf.findIndex((n=>vf(e,n[0])&&vf(t,n[1])))}var mf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,bf=e=>-1!==e.search(mf),Ef=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wf=e=>{var t=e.match(Ef);return null!==t&&t[0].length/2%2==1},Sf=e=>Ll(e)&&_f.isNodeList(e.children)&&!Nf.isEditor(e),Cf={isAncestor:e=>Ll(e)&&_f.isNodeList(e.children),isElement:Sf,isElementList:e=>Array.isArray(e)&&e.every((e=>Cf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Sf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Df=["text"],Af=["text"];function Of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=new WeakMap,Nf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Nf.path(e,o),u="lowest"===r;for(var[s,l]of Nf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!ed.isText(s)&&!Mf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.point(e,t,{edge:"end"}),focus:Nf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,xf(xf({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.start(e,[]),focus:Nf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,xf(xf({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Nf.start(e,t),Nf.end(e,t)],end:(e,t)=>Nf.point(e,t,{edge:"end"}),first(e,t){var n=Nf.path(e,t,{edge:"start"});return Nf.node(e,n)},fragment(e,t){var n=Nf.range(e,t);return _f.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Nf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>ed.isText(t)||Nf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>ed.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Cf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ll(e))return!1;var t=Tf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ll(e.marks))&&(null===e.selection||qf.isRange(e.selection))&&_f.isNodeList(e.children)&&jf.isOperationList(e.operations);return Tf.set(e,n),n},isEnd(e,t,n){var r=Nf.end(e,n);return $f.equals(t,r)},isEdge:(e,t,n)=>Nf.isStart(e,t,n)||Nf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&ed.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Cf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Mc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Nf.start(e,n);return $f.equals(t,r)},isVoid:(e,t)=>Cf.isElement(t)&&e.isVoid(t),last(e,t){var n=Nf.path(e,t,{edge:"end"});return Nf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[_f.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Nf.path(e,n);for(var[s,l]of _f.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Nf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(qf.isExpanded(n)){var[r]=Nf.nodes(e,{match:ed.isText});if(r){var[o]=r;return qc(o,Df)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Nf.leaf(e,a);if(0===i.offset){var s=Nf.previous(e,{at:a,match:ed.isText}),l=Nf.above(e,{match:t=>Nf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Mf.isAncestor(d,f)&&(u=c)}}return qc(u,Af)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.after(e,i,{voids:r});if(a){var[,u]=Nf.last(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[_f.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Bf.isSpan(n))s=n[0],l=n[1];else{var c=Nf.path(e,n,{edge:"start"}),f=Nf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=_f.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Nf.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===Mf.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&ed.isText(v))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Lc.get(e)||[];if(Nf.isNormalizing(e)){if(n){var o=Array.from(_f.nodes(e),(e=>{var[,t]=e;return t}));Lc.set(e,o)}0!==r(e).length&&Nf.withoutNormalizing(e,(()=>{for(var t of r(e))if(_f.has(e,t)){var n=Nf.node(e,t),[o,i]=n;Cf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(_f.has(e,s)){var l=Nf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n),o=Mf.parent(r);return Nf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Mf.isPath(t))if("start"===o){var[,i]=_f.first(e,t);t=i}else if("end"===o){var[,a]=_f.last(e,t);t=a}return qf.isRange(t)&&(t="start"===o?qf.start(t):"end"===o?qf.end(t):Mf.common(t.anchor.path,t.focus.path)),$f.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>_f.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pathRefs(e).delete(o),o.current=null,t}};return Nf.pathRefs(e).add(o),o},pathRefs(e){var t=zc.get(e);return t||(t=new Set,zc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Mf.isPath(t)){var o;if("end"===r){var[,i]=_f.last(e,t);o=i}else{var[,a]=_f.first(e,t);o=a}var u=_f.get(e,o);if(!ed.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(qf.isRange(t)){var[s,l]=qf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pointRefs(e).delete(o),o.current=null,t}};return Nf.pointRefs(e).add(o),o},pointRefs(e){var t=Hc.get(e);return t||(t=new Set,Hc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Nf.range(e,n),[u,s]=qf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[v,g]of Nf.nodes(e,{at:n,reverse:o,voids:i})){if(Cf.isElement(v)){if(!i&&e.isVoid(v)){yield Nf.start(e,g);continue}if(e.isInline(v))continue;if(Nf.hasInlines(e,v)){var y=Mf.isAncestor(g,s.path)?s:Nf.end(e,g),m=Mf.isAncestor(g,u.path)?u:Nf.start(e,g);f=Nf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(ed.isText(v)){var b=Mf.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,h=l.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===d){if(""===f)break;d=E(f,r,o),f=Qc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function E(e,t,n){return"character"===t?Yc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Yc(e,t),[i,a]=Qc(e,o,t);if(ef(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.before(e,i,{voids:r});if(a){var[,u]=Nf.first(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>qf.isRange(t)&&!n?t:{anchor:Nf.start(e,t),focus:Nf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.rangeRefs(e).delete(o),o.current=null,t}};return Nf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Mc.set(e,t)},start:(e,t)=>Nf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Nf.range(e,t),[i,a]=qf.edges(o),u="";for(var[s,l]of Nf.nodes(e,{at:o,match:ed.isText,voids:r})){var c=s.text;Mf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Mf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=qf.edges(t);if(0!==o.offset||0!==i.offset||qf.isCollapsed(t))return t;var a=Nf.above(e,{at:i,match:t=>Nf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Nf.start(e,[]),focus:i},l=!0;for(var[c,f]of Nf.nodes(e,{at:s,match:ed.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Mf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Nf.above(e,xf(xf({},t),{},{match:t=>Nf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Nf.isNormalizing(e);Nf.setNormalizing(e,!1);try{t()}finally{Nf.setNormalizing(e,n)}Nf.normalize(e)}},kf={isLocation:e=>Mf.isPath(e)||$f.isPoint(e)||qf.isRange(e)},Bf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Mf.isPath)},If=["children"],Ff=["text"],Pf=new WeakMap,_f={ancestor(e,t){var n=_f.get(e,t);if(ed.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.ancestors(t,n)){var o=[_f.ancestor(e,r),r];yield o}},child(e,t){if(ed.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=_f.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=_f.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Mf.common(t,n);return[_f.get(e,r),r]},descendant(e,t){var n=_f.get(e,t);if(Nf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of _f.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of _f.nodes(e,t))Cf.isElement(n)&&(yield[n,r])},extractProps:e=>Cf.isAncestor(e)?qc(e,If):qc(e,Ff),first(e,t){for(var n=t.slice(),r=_f.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ed.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Fc({children:e.children},(e=>{var[n,r]=qf.edges(t),o=_f.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!qf.includes(t,n)}});for(var[,i]of o){if(!qf.includes(t,i)){var a=_f.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Mf.equals(i,r.path)){var s=_f.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Mf.equals(i,n.path)){var l=_f.leaf(e,i);l.text=l.text.slice(n.offset)}}Nf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>ed.isText(e)||Cf.isElement(e)||Nf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Pf.get(e);if(void 0!==t)return t;var n=e.every((e=>_f.isNode(e)));return Pf.set(e,n),n},last(e,t){for(var n=t.slice(),r=_f.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=_f.get(e,t);if(!ed.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.levels(t,n)){var o=_f.get(e,r);yield[o,r]}},matches:(e,t)=>Cf.isElement(e)&&Cf.isElementProps(t)&&Cf.matches(e,t)||ed.isText(e)&&ed.isTextProps(t)&&ed.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Mf.isBefore(u,i):Mf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ed.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Mf.next(u);if(_f.has(e,l)){u=l,s=_f.get(e,u);continue}}if(r&&0!==u[u.length-1])u=Mf.previous(u),s=_f.get(e,u);else u=Mf.parent(u),s=_f.get(e,u),a.add(s)}else{a.add(s);var c=r?s.children.length-1:0;Mf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=_f.get(e,u)}},parent(e,t){var n=Mf.parent(t),r=_f.get(e,n);if(ed.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>ed.isText(e)?e.text:e.children.map(_f.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of _f.nodes(e,t))ed.isText(n)&&(yield[n,r])}};function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rf(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf={isNodeOperation:e=>jf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ll(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Mf.isPath(e.path)&&_f.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Mf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Mf.isPath(e.path)&&Ll(e.properties);case"move_node":return Mf.isPath(e.path)&&Mf.isPath(e.newPath);case"set_node":return Mf.isPath(e.path)&&Ll(e.properties)&&Ll(e.newProperties);case"set_selection":return null===e.properties&&qf.isRange(e.newProperties)||null===e.newProperties&&qf.isRange(e.properties)||Ll(e.properties)&&Ll(e.newProperties);case"split_node":return Mf.isPath(e.path)&&"number"==typeof e.position&&Ll(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>jf.isOperation(e))),isSelectionOperation:e=>jf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>jf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Lf(Lf({},e),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},e),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},e),{},{type:"split_node",path:Mf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Mf.equals(t,n))return e;if(Mf.isSibling(n,t))return Lf(Lf({},e),{},{path:t,newPath:n});var r=Mf.transform(n,e),o=Mf.transform(Mf.next(n),e);return Lf(Lf({},e),{},{path:r,newPath:o});case"remove_node":return Lf(Lf({},e),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Lf(Lf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Lf(Lf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Lf(Lf({},e),{},{type:"merge_node",path:Mf.next(e.path)})}}},Mf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Mf.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Mf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Mf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Mf.compare(e,t),isBefore:(e,t)=>-1===Mf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Mf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Mf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Mf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Mf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Mf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Mf.isAncestor(t,e)&&!Mf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Mf.equals(i,r)||Mf.endsBefore(i,r)||Mf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Mf.equals(a,r)||Mf.isAncestor(a,r))return null;Mf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Mf.equals(u,r)||Mf.endsBefore(u,r)?r[u.length-1]-=1:Mf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Mf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Mf.endsBefore(l,r)?r[l.length-1]+=1:Mf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Mf.equals(f,d))return;if(Mf.isAncestor(f,r)||Mf.equals(f,r)){var p=d.slice();return Mf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Mf.isSibling(f,d)&&(Mf.isAncestor(d,r)||Mf.equals(d,r))?Mf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Mf.endsBefore(d,r)||Mf.equals(d,r)||Mf.isAncestor(d,r)?(Mf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Mf.endsBefore(f,r)&&(Mf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Mf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={compare(e,t){var n=Mf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===$f.compare(e,t),isBefore:(e,t)=>-1===$f.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Mf.equals(e.path,t.path),isPoint:e=>Ll(e)&&"number"==typeof e.offset&&Mf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Mf.transform(o,t,n);break;case"insert_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Mf.equals(t.path,o)&&(e.offset+=t.position),e.path=Mf.transform(o,t,n);break;case"remove_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Mf.equals(t.path,o)||Mf.isAncestor(t.path,o))return null;e.path=Mf.transform(o,t,n);break;case"split_node":if(Mf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Mf.transform(o,t,Uf(Uf({},n),{},{affinity:"forward"})))}else e.path=Mf.transform(o,t,n)}}))}},Vf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Gf=["anchor","focus"];function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return qf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=qf.edges(e);return t},equals:(e,t)=>$f.equals(e.anchor,t.anchor)&&$f.equals(e.focus,t.focus),includes(e,t){if(qf.isRange(t)){if(qf.includes(e,t.anchor)||qf.includes(e,t.focus))return!0;var[n,r]=qf.edges(e),[o,i]=qf.edges(t);return $f.isBefore(n,o)&&$f.isAfter(r,i)}var[a,u]=qf.edges(e),s=!1,l=!1;return $f.isPoint(t)?(s=$f.compare(t,a)>=0,l=$f.compare(t,u)<=0):(s=Mf.compare(t,a.path)>=0,l=Mf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=qc(e,Gf),[r,o]=qf.edges(e),[i,a]=qf.edges(t),u=$f.isBefore(r,i)?i:r,s=$f.isBefore(o,a)?o:a;return $f.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return $f.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $f.equals(t,n)},isExpanded:e=>!qf.isCollapsed(e),isForward:e=>!qf.isBackward(e),isRange:e=>Ll(e)&&$f.isPoint(e.anchor)&&$f.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=qf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=qf.isCollapsed(e);qf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?qf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=$f.transform(e.anchor,t,{affinity:r}),s=$f.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=qf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Yf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ll(r)&&Ll(o)){if(!Yf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return qc(e,Xf)}return Yf(r?o(e):e,r?o(t):t)},isText:e=>Ll(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>ed.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Qf({},e)];for(var r of t){var o=qc(r,Zf),[i,a]=qf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=Qf(Qf({},d),{},{text:d.text.slice(v)}),d=Qf(Qf({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=Qf(Qf({},d),{},{text:d.text.slice(0,g)}),d=Qf(Qf({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={transform(e,t){e.children=Pc(e.children);var n=e.selection&&Pc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=_f.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of qf.points(t))t[s]=$f.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=_f.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[v,g]of qf.points(t))t[g]=$f.transform(v,n);break;case"merge_node":var{path:y}=n,m=_f.get(e,y),b=Mf.previous(y),E=_f.get(e,b),w=_f.parent(e,y),S=y[y.length-1];if(ed.isText(m)&&ed.isText(E))E.text+=m.text;else{if(ed.isText(m)||ed.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(E));E.children.push(...m.children)}if(w.children.splice(S,1),t)for(var[C,D]of qf.points(t))t[D]=$f.transform(C,n);break;case"move_node":var{path:A,newPath:O}=n;if(Mf.isAncestor(A,O))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(O,"] because the destination is inside itself."));var x=_f.get(e,A),T=_f.parent(e,A),N=A[A.length-1];T.children.splice(N,1);var k=Mf.transform(A,n),B=_f.get(e,Mf.parent(k)),I=k[k.length-1];if(B.children.splice(I,0,x),t)for(var[F,P]of qf.points(t))t[P]=$f.transform(F,n);break;case"remove_node":var{path:_}=n,R=_[_.length-1];if(_f.parent(e,_).children.splice(R,1),t)for(var[L,j]of qf.points(t)){var M=$f.transform(L,n);if(null!=t&&null!=M)t[j]=M;else{var z=void 0,H=void 0;for(var[U,$]of _f.texts(e)){if(-1!==Mf.compare($,_)){H=[U,$];break}z=[U,$]}var V=!1;z&&H&&(V=Mf.equals(H[1],_)?!Mf.hasPrevious(H[1]):Mf.common(z[1],_).length<Mf.common(H[1],_).length),z&&!V?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:G,offset:W,text:q}=n;if(0===q.length)break;var K=_f.leaf(e,G),Y=K.text.slice(0,W),X=K.text.slice(W+q.length);if(K.text=Y+X,t)for(var[Z,J]of qf.points(t))t[J]=$f.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=_f.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!qf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=nd({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=_f.get(e,le),he=_f.parent(e,le),ve=le[le.length-1];if(ed.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,de=nd(nd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=nd(nd({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[Ee,we]of qf.points(t))t[we]=$f.transform(Ee,n)}return t})(e,n,t)}finally{e.children=_c(e.children),e.selection=n?Ml(n)?_c(n):n:null}}},od=["text"],id=["children"];function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(_f.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Nf.end(e,[]):[0],s=!0),null==s&&(s=!1),qf.isRange(a))if(r||(a=Nf.unhangRange(e,a)),qf.isCollapsed(a))a=a.anchor;else{var[,c]=qf.edges(a),f=Nf.pointRef(e,c);md.delete(e,{at:a}),a=f.unref()}if($f.isPoint(a)){null==u&&(u=ed.isText(l)?e=>ed.isText(e):e.isInline(l)?t=>ed.isText(t)||Nf.isInline(e,t):t=>Nf.isBlock(e,t));var[d]=Nf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Nf.pathRef(e,p),v=Nf.isEnd(e,a,p);md.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Mf.next(g):g}var y=Mf.parent(a),m=a[a.length-1];if(o||!Nf.void(e,{at:y})){for(var b of t){var E=y.concat(m);m++,e.apply({type:"insert_node",path:E,node:b}),a=Mf.next(a)}if(a=Mf.previous(a),s){var w=Nf.end(e,a);w&&md.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Mf.isPath(n)?fd(e,n):t=>Nf.isBlock(e,t)),n){var a=Nf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Nf.node(e,Mf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var v=Mf.next(d);md.moveNodes(e,{at:l,to:v,voids:o}),md.removeNodes(e,{at:d,voids:o})}else if(0===p)md.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var g=Mf.next(d);md.moveNodes(e,{at:l,to:g,voids:o})}else{var y=Mf.next(l),m=Mf.next(d);md.splitNodes(e,{at:y,voids:o}),md.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Mf.isPath(r)){var[u]=Nf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Nf.isBlock(e,t);if(!o&&qf.isRange(r)&&(r=Nf.unhangRange(e,r)),qf.isRange(r))if(qf.isCollapsed(r))r=r.anchor;else{var[,s]=qf.edges(r),l=Nf.pointRef(e,s);md.delete(e,{at:r}),r=l.unref(),null==t.at&&md.select(e,r)}var[c]=Nf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Nf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=Mf.next(v),b=Mf.common(p,v),E=Mf.isSibling(p,v),w=Array.from(Nf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=Nf.above(e,{at:p,mode:"highest",match:t=>w.includes(t)&&ld(e,t)}),C=S&&Nf.pathRef(e,S[1]);if(ed.isText(d)&&ed.isText(h)){var D=qc(d,od);y=h.text.length,g=D}else{if(!Cf.isElement(d)||!Cf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=qc(d,id);y=h.children.length,g=D}E||md.moveNodes(e,{at:p,to:m,voids:i}),C&&md.removeNodes(e,{at:C.current,voids:i}),Cf.isElement(h)&&Nf.isEmpty(e,h)||ed.isText(h)&&""===h.text&&0!==v[v.length-1]?md.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Nf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Mf.isPath(r)?fd(e,r):t=>Nf.isBlock(e,t));var u=Nf.pathRef(e,n),s=Nf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Mf.isSibling(d,f)&&Mf.isAfter(d,f)&&(u.current=Mf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),!n&&qf.isRange(i)&&(i=Nf.unhangRange(e,i));var u=Nf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Nf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Mf.isPath(o)?fd(e,o):t=>Nf.isBlock(e,t)),!i&&qf.isRange(o)&&(o=Nf.unhangRange(e,o)),u&&qf.isRange(o)){if(qf.isCollapsed(o)&&Nf.leaf(e,o.anchor)[0].text.length>0)return;var l=Nf.rangeRef(e,o,{affinity:"inward"}),[c,f]=qf.edges(o),d="lowest"===a?"lowest":"highest",p=Nf.isEnd(e,f,f.path);md.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Nf.isStart(e,c,c.path);md.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&md.select(e,o)}for(var[v,g]of Nf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var E in t)"children"!==E&&"text"!==E&&t[E]!==v[E]&&(b=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),null!=t[E]&&(m[E]=t[E]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Nf.isBlock(e,t)),qf.isRange(i)&&(i=cd(e,i)),Mf.isPath(i)){var s=i,l=Nf.point(e,s),[c]=Nf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Nf.pointRef(e,i,{affinity:"backward"}),[d]=Nf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Nf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(Cf.isElement(h)&&e.isInline(h)){var g=Nf.after(e,v);if(!g){var y=Mf.next(v);md.insertNodes(e,{text:""},{at:y,voids:r}),g=Nf.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Nf.pointRef(e,i),b=i.path.length-a,[,E]=d,w=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of Nf.levels(e,{at:w,reverse:!0,voids:r})){var A=!1;if(D.length<E.length||0===D.length||!r&&Nf.isVoid(e,C))break;var O=f.current,x=Nf.isEnd(e,O,D);if(u||!f||!Nf.isEdge(e,O,D)){A=!0;var T=_f.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:T})}S=D[D.length-1]+(A||x?1:0)}if(null==t.at){var N=m.current||Nf.end(e,[]);md.select(e,N)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;md.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),Mf.isPath(i)&&(i=Nf.range(e,i));var u=qf.isRange(i)?Nf.rangeRef(e,i):null,s=Nf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Nf.node(e,n),a=Nf.range(e,n);r&&u&&(a=qf.intersection(u.current,a)),md.liftNodes(e,{at:a,match:e=>Cf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Mf.isPath(u)?fd(e,u):e.isInline(t)?t=>Nf.isInline(e,t)||ed.isText(t):t=>Nf.isBlock(e,t)),o&&qf.isRange(u)){var[s,l]=qf.edges(u),c=Nf.rangeRef(e,u,{affinity:"inward"});md.splitNodes(e,{at:l,match:a,voids:i}),md.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&md.select(e,u)}var f=Array.from(Nf.nodes(e,{at:u,match:e.isInline(t)?t=>Nf.isBlock(e,t):e=>Nf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=qf.isRange(u)?qf.intersection(u,Nf.range(e,d)):u;if(p){var h=Array.from(Nf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Mf.equals(o,a)?Mf.parent(o):Mf.common(o,a),s=Nf.range(e,o,a),l=Nf.node(e,u),[c]=l,f=u.length+1,d=Mf.next(a.slice(0,f)),p=ud(ud({},t),{},{children:[]});md.insertNodes(e,p,{at:d,voids:i}),md.moveNodes(e,{at:s,match:e=>Cf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},ld=(e,t)=>{if(Cf.isElement(t)){var n=t;return!!Nf.isVoid(e,t)||1===n.children.length&&ld(e,n.children[0])}return!Nf.isEditor(t)},cd=(e,t)=>{if(qf.isCollapsed(t))return t.anchor;var[,n]=qf.edges(t),r=Nf.pointRef(e,n);return md.delete(e,{at:t}),r.unref()},fd=(e,t)=>{var[n]=Nf.node(e,t);return e=>e===n};function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)md.select(e,r.anchor);else if("focus"===n)md.select(e,r.focus);else if("start"===n){var[o]=qf.edges(r);md.select(e,o)}else if("end"===n){var[,i]=qf.edges(r);md.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=qf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=qf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Nf.before(e,u,l):Nf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Nf.before(e,s,l):Nf.after(e,s,l);d&&(c.focus=d)}md.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Nf.range(e,t),n)md.setSelection(e,t);else{if(!qf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=qf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=qf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;md.setSelection(e,{["anchor"===o?"anchor":"focus"]:pd(pd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!$f.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!$f.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},vd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(qf.isRange(a)&&qf.isCollapsed(a)&&(a=a.anchor),$f.isPoint(a)){var s=Nf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Nf.before(e,a,c)||Nf.start(e,[]):Nf.after(e,a,c)||Nf.end(e,[])},u=!0}}if(Mf.isPath(a))md.removeNodes(e,{at:a,voids:i});else if(!qf.isCollapsed(a)){if(!u){var[,f]=qf.edges(a),d=Nf.end(e,[]);$f.equals(f,d)||(a=Nf.unhangRange(e,a,{voids:i}))}var[p,h]=qf.edges(a),v=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:p,voids:i}),g=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Mf.equals(v[1],g[1]),m=Mf.equals(p.path,h.path),b=i?null:Nf.void(e,{at:p,mode:"highest"}),E=i?null:Nf.void(e,{at:h,mode:"highest"});if(b){var w=Nf.before(e,p);w&&v&&Mf.isAncestor(v[1],w.path)&&(p=w)}if(E){var S=Nf.after(e,h);S&&g&&Mf.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var A of Nf.nodes(e,{at:a,voids:i})){var[O,x]=A;C&&0===Mf.compare(x,C)||(!i&&Nf.isVoid(e,O)||!Mf.isCommon(x,p.path)&&!Mf.isCommon(x,h.path))&&(D.push(A),C=x)}var T=Array.from(D,(t=>{var[,n]=t;return Nf.pathRef(e,n)})),N=Nf.pointRef(e,p),k=Nf.pointRef(e,h);if(!m&&!b){var B=N.current,[I]=Nf.leaf(e,B),{path:F}=B,{offset:P}=p,_=I.text.slice(P);_.length>0&&e.apply({type:"remove_text",path:F,offset:P,text:_})}for(var R of T){var L=R.unref();md.removeNodes(e,{at:L,voids:i})}if(!E){var j=k.current,[M]=Nf.leaf(e,j),{path:z}=j,H=m?p.offset:0,U=M.text.slice(H,h.offset);U.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:U})}!m&&y&&k.current&&N.current&&md.mergeNodes(e,{at:k.current,hanging:!0,voids:i});var $=n?N.unref()||k.unref():k.unref()||N.unref();null==t.at&&$&&md.select(e,$)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(qf.isRange(i))if(r||(i=Nf.unhangRange(e,i)),qf.isCollapsed(i))i=i.anchor;else{var[,a]=qf.edges(i);if(!o&&Nf.void(e,{at:a}))return;var u=Nf.pointRef(e,a);md.delete(e,{at:i}),i=u.unref()}else Mf.isPath(i)&&(i=Nf.start(e,i));if(o||!Nf.void(e,{at:i})){var s=Nf.above(e,{at:i,match:t=>Nf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;if(Nf.isEnd(e,i,l))i=Nf.after(e,l);else if(Nf.isStart(e,i,l)){i=Nf.before(e,l)}}var c=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Nf.isStart(e,i,f),p=Nf.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=_f.first({children:t},[]),[,m]=_f.last({children:t},[]),b=[],E=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(v&&Mf.isAncestor(r,y)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&Mf.isAncestor(r,m)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of _f.nodes({children:t},{pass:E}))E(w)&&b.push(w);var S=[],C=[],D=[],A=!0,O=!1;for(var[x]of b)Cf.isElement(x)&&!e.isInline(x)?(A=!1,O=!0,C.push(x)):A?S.push(x):D.push(x);var[T]=Nf.nodes(e,{at:i,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),[,N]=T,k=Nf.isStart(e,i,N),B=Nf.isEnd(e,i,N),I=Nf.pathRef(e,p?Mf.next(f):f),F=Nf.pathRef(e,B?Mf.next(N):N),P=Nf.pathRef(e,f);md.splitNodes(e,{at:i,match:t=>O?Nf.isBlock(e,t):ed.isText(t)||Nf.isInline(e,t),mode:O?"lowest":"highest",voids:o});var _=Nf.pathRef(e,!k||k&&B?Mf.next(N):N);if(md.insertNodes(e,S,{at:_.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&md.delete(e,{at:P.unref(),voids:o}),md.insertNodes(e,C,{at:I.current,match:t=>Nf.isBlock(e,t),mode:"lowest",voids:o}),md.insertNodes(e,D,{at:F.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),!n.at){var R;R=D.length>0?Mf.previous(F.current):C.length>0?Mf.previous(I.current):Mf.previous(_.current);var L=Nf.end(e,R);md.select(e,L)}_.unref(),I.unref(),F.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Mf.isPath(o)&&(o=Nf.range(e,o)),qf.isRange(o))if(qf.isCollapsed(o))o=o.anchor;else{var i=qf.end(o);if(!r&&Nf.void(e,{at:i}))return;var a=Nf.pointRef(e,i);md.delete(e,{at:o,voids:r}),o=a.unref(),md.setSelection(e,{anchor:o,focus:o})}if(r||!Nf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){Rc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=yd(yd(yd(yd({},rd),sd),hd),vd),bd="[object Map]",Ed="[object Set]",wd=/^\[object .+?Constructor\]$/,Sd=/^(?:0|[1-9]\d*)$/,Cd="[\\ud800-\\udfff]",Dd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ad="\\ud83c[\\udffb-\\udfff]",Od="[^\\ud800-\\udfff]",xd="(?:\\ud83c[\\udde6-\\uddff]){2}",Td="[\\ud800-\\udbff][\\udc00-\\udfff]",Nd="(?:"+Dd+"|"+Ad+")"+"?",kd="[\\ufe0e\\ufe0f]?"+Nd+("(?:\\u200d(?:"+[Od,xd,Td].join("|")+")[\\ufe0e\\ufe0f]?"+Nd+")*"),Bd="(?:"+[Od+Dd+"?",Dd,xd,Td,Cd].join("|")+")",Id=RegExp(Ad+"(?="+Ad+")|"+Bd+kd,"g"),Fd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Pd="object"==typeof e&&e&&e.Object===Object&&e,_d="object"==typeof self&&self&&self.Object===Object&&self,Rd=Pd||_d||Function("return this")();function Ld(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function jd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Md(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zd(e){return function(e){return Fd.test(e)}(e)?function(e){return e.match(Id)||[]}(e):function(e){return e.split("")}(e)}var Hd,Ud,$d=Function.prototype,Vd=Object.prototype,Gd=Rd["__core-js_shared__"],Wd=function(){var e=/[^.]+$/.exec(Gd&&Gd.keys&&Gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qd=$d.toString,Kd=Vd.hasOwnProperty,Yd=Vd.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=Rd.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Vd.propertyIsEnumerable,ep=(Hd=Object.keys,Ud=Object,function(e){return Hd(Ud(e))}),tp=hp(Rd,"DataView"),np=hp(Rd,"Map"),rp=hp(Rd,"Promise"),op=hp(Rd,"Set"),ip=hp(Rd,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(e,t){var n=mp(e)||function(e){return function(e){return Sp(e)&&bp(e)}(e)&&Kd.call(e,"callee")&&(!Qd.call(e,"callee")||"[object Arguments]"==Yd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Kd.call(e,i)||o&&("length"==i||gp(i,r))||n.push(i);return n}function dp(e){if(!wp(e)||function(e){return!!Wd&&Wd in e}(e))return!1;var t=Ep(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Xd:wd;return t.test(yp(e))}function pp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Vd,t!==r)return ep(e);var t,n,r,o=[];for(var i in Object(e))Kd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function hp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return dp(n)?n:void 0}var vp=function(e){return Yd.call(e)};function gp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Sd.test(e))&&e>-1&&e%1==0&&e<t}function yp(e){if(null!=e){try{return qd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(tp&&"[object DataView]"!=vp(new tp(new ArrayBuffer(1)))||np&&vp(new np)!=bd||rp&&"[object Promise]"!=vp(rp.resolve())||op&&vp(new op)!=Ed||ip&&"[object WeakMap]"!=vp(new ip))&&(vp=function(e){var t=Yd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?yp(n):void 0;if(r)switch(r){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return Ed;case cp:return"[object WeakMap]"}return t});var mp=Array.isArray;function bp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ep(e)}function Ep(e){var t=wp(e)?Yd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function wp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sp(e){return!!e&&"object"==typeof e}function Cp(e){return e?Ld(e,function(e){return bp(e)?fp(e):pp(e)}(e)):[]}var Dp=function(e){if(!e)return[];if(bp(e))return function(e){return"string"==typeof e||!mp(e)&&Sp(e)&&"[object String]"==Yd.call(e)}(e)?zd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Jd&&e[Jd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Jd]());var t=vp(e);return(t==bd?jd:t==Ed?Md:Cp)(e)};function Ap(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Op(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ap(t[n])&&Ap(e[n])&&Object.keys(t[n]).length>0&&Op(e[n],t[n])}))}var xp={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Tp(){var e="undefined"!=typeof document?document:{};return Op(e,xp),e}var Np={document:xp,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function kp(){var e="undefined"!=typeof window?window:{};return Op(e,Np),e}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ip(e,t)}function Fp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Pp(e,t,n){return Pp=Fp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ip(o,n.prototype),o},Pp.apply(null,arguments)}function _p(e){var t="function"==typeof Map?new Map:void 0;return _p=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Pp(e,arguments,Bp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ip(n,e)},_p(e)}var Rp=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(_p(Array));function Lp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Lp(e)):t.push(e)})),t}function jp(e,t){return Array.prototype.filter.call(e,t)}function Mp(e,t){var n=kp(),r=Tp(),o=[];if(!t&&e instanceof Rp)return e;if(!e)return new Rp(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof Rp)return e;o=e}return new Rp(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return jp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function $p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Vp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Gp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Wp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function qp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Mp(t).is(o))i.apply(t,n);else for(var r=Mp(t).parents(),a=0;a<r.length;a+=1)Mp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Yp(){var e=kp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var e=kp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var e=kp(),t=Tp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Jp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Qp(){for(var e=kp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function eh(e,t){var n,r=kp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function th(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function nh(e){return Mp(jp(this,e))}function rh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function oh(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ih(e){var t,n,r=kp(),o=Tp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Mp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof Rp){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ah(){for(var e,t=Tp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof Rp)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function uh(e){var t,n,r=Tp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof Rp)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function sh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Mp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Mp(t)}function lh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Mp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Mp(t)}function ch(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Mp(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Mp(r[o]).is(e)||t.push(r[o]);return Mp(t)}function dh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ph(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Mp.fn=Rp.prototype;var hh="resize scroll".split(" ");function vh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)hh.indexOf(e)<0&&(e in this[o]?this[o][e]():Mp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var gh=vh("click"),yh=vh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function Eh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var wh=Object.prototype,Sh=wh.hasOwnProperty,Ch=wh.toString,Dh=wh.propertyIsEnumerable,Ah=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Oh(e,t){var n=Fh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ph(e)}(e)&&Sh.call(e,"callee")&&(!Dh.call(e,"callee")||"[object Arguments]"==Ch.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Sh.call(e,i)||o&&("length"==i||Ih(i,r))||n.push(i);return n}var xh,Th,Nh=(xh=function(e,t){return e&&kh(e,t,_h)},function(e,t){if(null==e)return e;if(!Ph(e))return xh(e,t);for(var n=e.length,r=Th?n:-1,o=Object(e);(Th?r--:++r<n)&&!1!==t(o[r],r,o););return e}),kh=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function Bh(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||wh,t!==r)return Ah(e);var t,n,r,o=[];for(var i in Object(e))Sh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ih(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||bh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=Array.isArray;function Ph(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Ch.call(e):"";return"[object Function]"==t||t==mh}(e)}function _h(e){return Ph(e)?Oh(e):Bh(e)}function Rh(e){return e}var Lh=function(e,t){return(Fh(e)?Eh:Nh)(e,"function"==typeof t?t:Rh)};let jh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,Hh=/^0b[01]+$/i,Uh=/^0o[0-7]+$/i,$h=parseInt,Vh="object"==typeof e&&e&&e.Object===Object&&e,Gh="object"==typeof self&&self&&self.Object===Object&&self,Wh=Vh||Gh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Wh.Date.now()};function Zh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=Xh();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Yh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Xh(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Qh(t)||0,Jh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Kh(Qh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Xh())},m}function Jh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==qh.call(e)}(e))return NaN;if(Jh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mh,"");var n=Hh.test(e);return n||Uh.test(e)?$h(e.slice(2),n?2:8):zh.test(e)?NaN:+e}var ev=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Jh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Zh(e,t,{leading:r,maxWait:t,trailing:o})};const tv={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function nv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const rv=Array.isArray;function ov(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function iv(e){return void 0===e}function av(e){return void 0!==e}const uv=nv("",{},[],void 0,void 0);function sv(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function lv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const cv=["create","update","remove","destroy","pre","post"];function fv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:tv;for(const t of cv)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return nv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;av(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)iv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,v=e.elm=av(s)&&av(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&v.setAttribute("id",c.slice(d+1,p)),f>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](uv,e);if(rv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(v,a(e,t))}else ov(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;av(g)&&(null===(i=g.create)||void 0===i||i.call(g,uv,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(av(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;av(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}iv(t.text)?av(g)&&av(y)?g!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],E=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==E?E=n[--m]:sv(g,b)?(c(g,b,o),g=t[++p],b=n[++h]):sv(y,E)?(c(y,E,o),y=t[--v],E=n[--m]):sv(g,E)?(c(g,E,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],E=n[--m]):sv(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=lv(t,p,v)),s=i[b.key],iv(s)?r.insertBefore(e,a(b,o),g.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),g.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,v))}(v,g,y,o):av(y)?(av(e.text)&&r.setTextContent(v,""),u(v,null,y,0,y.length-1,o)):av(g)?l(v,g,0,g.length-1):av(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(av(g)&&l(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),sv(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function dv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&dv(n,t[e].children,t[e].sel)}}function pv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),rv(n)?r=n:ov(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(rv(t)?r=t:ov(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ov(r[i])&&(r[i]=nv(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||dv(a,r,e),nv(e,a,r,o,void 0)}function hv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const vv={create:hv,update:hv};function gv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const yv={create:gv,update:gv},mv=/[A-Z]/g;function bv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(mv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(mv,"-$&").toLowerCase(),i[r]))}const Ev={create:bv,update:bv};function wv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)wv(e[r],t,n)}function Sv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&wv(r[n],t,e)}function Cv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Sv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Dv={create:Cv,update:Cv,destroy:Cv};function Av(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const Ov={create:Av,update:Av},xv="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Tv=!1;function Nv(e,t,n){!function(e){xv((function(){xv(e)}))}((function(){e[t]=n}))}function kv(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Nv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Bv={pre:function(){Tv=!1},create:kv,update:kv,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Tv||(e.elm.offsetLeft,Tv=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Iv(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Iv(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(nv(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fv(e,t,...n){const r=Iv(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?pv(e,t,r[0].text):pv(e,t,r)}Fv||(Fv={});var Pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_v=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Rv="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lv="[\\ud800-\\udfff]",jv="["+Rv+"]",Mv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zv="\\d+",Hv="[\\u2700-\\u27bf]",Uv="[a-z\\xdf-\\xf6\\xf8-\\xff]",$v="[^\\ud800-\\udfff"+Rv+zv+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Vv="\\ud83c[\\udffb-\\udfff]",Gv="[^\\ud800-\\udfff]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Kv="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yv="(?:"+Uv+"|"+$v+")",Xv="(?:"+Kv+"|"+$v+")",Zv="(?:"+Mv+"|"+Vv+")"+"?",Jv="[\\ufe0e\\ufe0f]?"+Zv+("(?:\\u200d(?:"+[Gv,Wv,qv].join("|")+")[\\ufe0e\\ufe0f]?"+Zv+")*"),Qv="(?:"+[Hv,Wv,qv].join("|")+")"+Jv,eg="(?:"+[Gv+Mv+"?",Mv,Wv,qv,Lv].join("|")+")",tg=RegExp("['’]","g"),ng=RegExp(Mv,"g"),rg=RegExp(Vv+"(?="+Vv+")|"+eg+Jv,"g"),og=RegExp([Kv+"?"+Uv+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[jv,Kv,"$"].join("|")+")",Xv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[jv,Kv+Yv,"$"].join("|")+")",Kv+"?"+Yv+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zv,Qv].join("|"),"g"),ig=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ag=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ug="object"==typeof e&&e&&e.Object===Object&&e,sg="object"==typeof self&&self&&self.Object===Object&&self,lg=ug||sg||Function("return this")();var cg,fg=(cg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==cg?void 0:cg[e]});function dg(e){return ig.test(e)}function pg(e){return dg(e)?function(e){return e.match(rg)||[]}(e):function(e){return e.split("")}(e)}var hg=Object.prototype.toString,vg=lg.Symbol,gg=vg?vg.prototype:void 0,yg=gg?gg.toString:void 0;function mg(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hg.call(e)}(e))return yg?yg.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function bg(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function Eg(e){return null==e?"":mg(e)}var wg,Sg=(wg=function(e,t,n){return t=t.toLowerCase(),e+(n?Dg(Eg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Eg(e),void 0===(t=n?void 0:t)?function(e){return ag.test(e)}(e)?function(e){return e.match(og)||[]}(e):function(e){return e.match(Pv)||[]}(e):e.match(t)||[]}(function(e){return(e=Eg(e))&&e.replace(_v,fg).replace(ng,"")}(e).replace(tg,"")),wg,"")});var Cg,Dg=(Cg="toUpperCase",function(e){var t=dg(e=Eg(e))?pg(e):void 0,n=t?t[0]:e.charAt(0),r=t?bg(t,1).join(""):e.slice(1);return n[Cg]()+r});for(var Ag=Sg,Og="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),xg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Tg={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Og?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ng={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},kg=1;kg<20;kg++)Ng["f"+kg]=111+kg;function Bg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in xg)r[xg[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Fg(d),v=xg[h];if(d.length>1&&!v&&!Tg[d]&&!Ng[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=Ig(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Ig(e){return e=Fg(e),Ng[e]||e.toUpperCase().charCodeAt(0)}function Fg(e){return e=e.toLowerCase(),e=Tg[e]||e}var Pg=Bg,_g=function(e,t){return Bg(e,{byKey:!0},t)},Rg=/^\s+|\s+$/g,Lg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Mg=/^0o[0-7]+$/i,zg=parseInt,Hg="object"==typeof e&&e&&e.Object===Object&&e,Ug="object"==typeof self&&self&&self.Object===Object&&self,$g=Hg||Ug||Function("return this")(),Vg=Object.prototype.toString,Gg=Math.max,Wg=Math.min,qg=function(){return $g.Date.now()};function Kg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Yg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Vg.call(e)}(e))return NaN;if(Kg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Rg,"");var n=jg.test(e);return n||Mg.test(e)?zg(e.slice(2),n?2:8):Lg.test(e)?NaN:+e}var Xg,Zg=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=qg();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Wg(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=qg(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Yg(t)||0,Kg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Gg(Yg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(qg())},m},Jg=n((function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",O="[object Uint8Array]",x="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",k=/\w*$/,B=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,F={};F[i]=F["[object Array]"]=F[b]=F[E]=F[a]=F[u]=F[w]=F[S]=F[C]=F[D]=F[A]=F[c]=F[f]=F[d]=F[h]=F[v]=F[g]=F[y]=F[O]=F[x]=F[T]=F[N]=!0,F["[object Error]"]=F[s]=F[m]=!1;var P="object"==typeof e&&e&&e.Object===Object&&e,_="object"==typeof self&&self&&self.Object===Object&&self,R=P||_||Function("return this")(),L=n&&!n.nodeType&&n,j=L&&t&&!t.nodeType&&t,M=j&&j.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function U(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=R["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?R.Buffer:void 0,re=R.Symbol,oe=R.Uint8Array,ie=G(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=G(Object.keys,Object),de=Le(R,"DataView"),pe=Le(R,"Map"),he=Le(R,"Promise"),ve=Le(R,"Set"),ge=Le(R,"WeakMap"),ye=Le(Object,"create"),me=Ue(de),be=Ue(pe),Ee=Ue(he),we=Ue(ve),Se=Ue(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){this.__data__=new Oe(e)}function Ne(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ge(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function ke(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Ie(e,t,n,r,o,p,m){var B;if(r&&(B=p?r(e,o,p,m):r(e)),void 0!==B)return B;if(!Ke(e))return e;var I=Ve(e);if(I){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var P=Me(e),_=P==s||P==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(P==d||P==i||_&&!p){if($(e))return p?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(_?{}:e),!t)return function(e,t){return _e(e,je(e),t)}(e,function(e,t){return e&&_e(t,Ye(t),e)}(B,e))}else{if(!F[P])return p?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case u:return new o(+e);case E:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case S:case C:case D:case A:case O:case x:case T:case N:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return U(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case f:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){return U(t?n(W(e),!0):W(e),H,new e.constructor)}(e,r,n);case y:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,P,Ie,t)}}m||(m=new Te);var R=m.get(e);if(R)return R;if(m.set(e,B),!I)var L=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,je)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),ke(B,i,Ie(o,t,n,r,i,e,m))})),B}function Fe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||$(e)?te:B).test(Ue(e))}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function _e(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;ke(n,a,void 0===u?e[a]:u)}return n}function Re(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Be(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||Oe),string:new Ae}},xe.prototype.delete=function(e){return Re(this,e).delete(e)},xe.prototype.get=function(e){return Re(this,e).get(e)},xe.prototype.has=function(e){return Re(this,e).has(e)},xe.prototype.set=function(e,t){return Re(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new Oe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new xe(r)}return n.set(e,t),this};var je=le?G(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=E||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ve&&Me(new ve)!=v||ge&&Me(new ge)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case me:return E;case be:return c;case Ee:return p;case we:return v;case Se:return m}return t});var Ve=Array.isArray;function Ge(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ge(e)?Ne(e):function(e){if(!He(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}t.exports=function(e){return Ie(e,!0,!0)}}));function Qg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ey=0;function ty(e){return"__private_"+ey+++"_"+e}function ny(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
7
|
+
*/function _l(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ll(e){var t,n;return!1!==_l(e)&&(void 0===(t=e.constructor)||!1!==_l(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}function jl(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ml(e){return!!e&&!!e[Dc]}function zl(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Ac}(e)||Array.isArray(e)||!!e[Cc]||!!e.constructor[Cc]||Gl(e)||Wl(e))}function Hl(e,t,n){void 0===n&&(n=!1),0===Ul(e)?(n?Object.keys:xc)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Ul(e){var t=e[Dc];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Gl(e)?2:Wl(e)?3:0}function $l(e,t){return 2===Ul(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t,n){var r=Ul(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function Gl(e){return bc&&e instanceof Map}function Wl(e){return Ec&&e instanceof Set}function ql(e){return e.o||e.t}function Kl(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Oc(e);delete t[Dc];for(var n=xc(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Yl(e,t){return void 0===t&&(t=!1),Zl(e)||Ml(e)||!zl(e)||(Ul(e)>1&&(e.set=e.add=e.clear=e.delete=Xl),Object.freeze(e),t&&Hl(e,(function(e,t){return Yl(t,!0)}),!0)),e}function Xl(){jl(2)}function Zl(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Jl(e){var t=Tc[e];return t||jl(18,e),t}function Ql(){return yc}function ec(e,t){t&&(Jl("Patches"),e.u=[],e.s=[],e.v=t)}function tc(e){nc(e),e.p.forEach(oc),e.p=null}function nc(e){e===yc&&(yc=e.l)}function rc(e){return yc={p:[],l:yc,h:e,m:!0,_:0}}function oc(e){var t=e[Dc];0===t.i||1===t.i?t.j():t.O=!0}function ic(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.g||Jl("ES5").S(t,e,r),r?(n[Dc].P&&(tc(t),jl(4)),zl(e)&&(e=ac(t,e),t.l||sc(t,e)),t.u&&Jl("Patches").M(n[Dc],e,t.u,t.s)):e=ac(t,n,[]),tc(t),t.u&&t.v(t.u,t.s),e!==Sc?e:void 0}function ac(e,t,n){if(Zl(t))return t;var r=t[Dc];if(!r)return Hl(t,(function(o,i){return uc(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return sc(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=Kl(r.k):r.o;Hl(3===r.i?new Set(o):o,(function(t,i){return uc(e,r,o,t,i,n)})),sc(e,o,!1),n&&e.u&&Jl("Patches").R(r,n,e.u,e.s)}return r.o}function uc(e,t,n,r,o,i){if(Ml(o)){var a=ac(e,o,i&&t&&3!==t.i&&!$l(t.D,r)?i.concat(r):void 0);if(Vl(n,r,a),!Ml(a))return;e.m=!1}if(zl(o)&&!Zl(o)){if(!e.h.F&&e._<1)return;ac(e,o),t&&t.A.l||sc(e,o)}}function sc(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&Yl(t,n)}function lc(e,t){var n=e[Dc];return(n?ql(n):e)[t]}function cc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function fc(e){e.P||(e.P=!0,e.l&&fc(e.l))}function dc(e){e.o||(e.o=Kl(e.t))}function pc(e,t,n){var r=Gl(t)?Jl("MapSet").N(t,n):Wl(t)?Jl("MapSet").T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Ql(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Nc;n&&(o=[r],i=kc);var a=Proxy.revocable(o,i),u=a.revoke,s=a.proxy;return r.k=s,r.j=u,s}(t,n):Jl("ES5").J(t,n);return(n?n.A:Ql()).p.push(r),r}function hc(e){return Ml(e)||jl(22,e),function e(t){if(!zl(t))return t;var n,r=t[Dc],o=Ul(t);if(r){if(!r.P&&(r.i<4||!Jl("ES5").K(r)))return r.t;r.I=!0,n=vc(t,o),r.I=!1}else n=vc(t,o);return Hl(n,(function(t,o){r&&function(e,t){return 2===Ul(e)?e.get(t):e[t]}(r.t,t)===o||Vl(n,t,e(o))})),3===o?new Set(n):n}(e)}function vc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Kl(e)}var gc,yc,mc="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),bc="undefined"!=typeof Map,Ec="undefined"!=typeof Set,wc="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Sc=mc?Symbol.for("immer-nothing"):((gc={})["immer-nothing"]=!0,gc),Cc=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Dc=mc?Symbol.for("immer-state"):"__$immer_state",Ac=""+Object.prototype.constructor,xc="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Oc=Object.getOwnPropertyDescriptors||function(e){var t={};return xc(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Tc={},Nc={get:function(e,t){if(t===Dc)return e;var n=ql(e);if(!$l(n,t))return function(e,t,n){var r,o=cc(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!zl(r)?r:r===lc(e.t,t)?(dc(e),e.o[t]=pc(e.A.h,r,e)):r},has:function(e,t){return t in ql(e)},ownKeys:function(e){return Reflect.ownKeys(ql(e))},set:function(e,t,n){var r=cc(ql(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=lc(ql(e),t),i=null==o?void 0:o[Dc];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||$l(e.t,t)))return!0;dc(e),fc(e)}return e.o[t]===n&&"number"!=typeof n&&(void 0!==n||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==lc(e.t,t)||t in e.t?(e.D[t]=!1,dc(e),fc(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=ql(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){jl(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jl(12)}},kc={};Hl(Nc,(function(e,t){kc[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),kc.deleteProperty=function(e,t){return Nc.deleteProperty.call(this,e[0],t)},kc.set=function(e,t,n){return Nc.set.call(this,e[0],t,n,e[0])};var Bc=function(){function e(e){var t=this;this.g=wc,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),u=1;u<r;u++)a[u-1]=arguments[u];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&jl(6),void 0!==r&&"function"!=typeof r&&jl(7),zl(e)){var u=rc(t),s=pc(t,e,void 0),l=!0;try{a=n(s),l=!1}finally{l?tc(u):nc(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return ec(u,r),ic(e,u)}),(function(e){throw tc(u),e})):(ec(u,r),ic(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===Sc)return;return void 0===a&&(a=e),t.F&&Yl(a,!0),a}jl(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){zl(e)||jl(8),Ml(e)&&(e=hc(e));var t=rc(this),n=pc(this,e,void 0);return n[Dc].C=!0,nc(t),n},t.finishDraft=function(e,t){var n=(e&&e[Dc]).A;return ec(n,t),ic(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!wc&&jl(20),this.g=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Jl("Patches").$;return Ml(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),Ic=new Bc,Fc=Ic.produce;Ic.produceWithPatches.bind(Ic),Ic.setAutoFreeze.bind(Ic),Ic.setUseProxies.bind(Ic),Ic.applyPatches.bind(Ic);var Pc=Ic.createDraft.bind(Ic),Rc=Ic.finishDraft.bind(Ic);function _c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lc=new WeakMap,jc=new WeakMap,Mc=new WeakMap,zc=new WeakMap,Hc=new WeakMap,Uc=new WeakMap;function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gc=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of Nf.pathRefs(e))zf.transform(n,t);for(var r of Nf.pointRefs(e))Vf.transform(r,t);for(var o of Nf.rangeRefs(e))Kf.transform(o,t);var i=new Set,a=[],u=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},s=Lc.get(e)||[],l=Wc(t);for(var c of s){u(Mf.transform(c,t))}for(var f of l)u(f);Lc.set(e,a),md.transform(e,t),e.operations.push(t),Nf.normalize(e),"set_selection"===t.type&&(e.marks=null),jc.get(e)||(jc.set(e,!0),Promise.resolve().then((()=>{jc.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(qf.isExpanded(r))md.setNodes(e,{[t]:n},{match:ed.isText,split:!0});else{var o=Vc(Vc({},Nf.marks(e)||{}),{},{[t]:n});e.marks=o,jc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&qf.isCollapsed(n)&&md.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&qf.isExpanded(n)&&md.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Rf.fragment(e,t):[]},insertBreak:()=>{md.splitNodes(e,{always:!0})},insertFragment:t=>{md.insertFragment(e,t)},insertNode:t=>{md.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var o=Vc({text:t},r);md.insertNodes(e,o)}else md.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!ed.isText(n))if(Cf.isElement(n)&&0===n.children.length){md.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!Nf.isEditor(n)&&(Cf.isElement(n)&&(e.isInline(n)||0===n.children.length||ed.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var u=Rf.get(e,r);if(!ed.isText(u)){var s=n.children[a],l=u.children[i-1],c=a===n.children.length-1;if((ed.isText(s)||Cf.isElement(s)&&e.isInline(s))!==o)md.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Cf.isElement(s)){if(e.isInline(s))if(null!=l&&ed.isText(l)){if(c){md.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{md.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=l&&ed.isText(l)&&(ed.equals(s,l,{loose:!0})?(md.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(md.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):""===s.text&&(md.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(qf.isExpanded(n))md.unsetNodes(e,t,{match:ed.isText,split:!0});else{var r=Vc({},Nf.marks(e)||{});delete r[t],e.marks=r,jc.get(e)||e.onChange()}}};return e},Wc=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return Mf.levels(t);case"insert_node":var{node:n,path:r}=e,o=Mf.levels(r),i=ed.isText(n)?[]:Array.from(Rf.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...o,...i];case"merge_node":var{path:a}=e;return[...Mf.ancestors(a),Mf.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(Mf.equals(u,s))return[];var l=[],c=[];for(var f of Mf.ancestors(u)){var d=Mf.transform(f,e);l.push(d)}for(var p of Mf.ancestors(s)){var h=Mf.transform(p,e);c.push(h)}var v=c[c.length-1],g=s[s.length-1],y=v.concat(g);return[...l,...c,y];case"remove_node":var{path:m}=e;return[...Mf.ancestors(m)];case"split_node":var{path:b}=e;return[...Mf.levels(b),Mf.next(b)];default:return[]}};function qc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kc,Yc=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!t,r=t?tf(e):e,o=Kc.None,i=Kc.None,a=0,u=null;for(var s of r){var l=s.codePointAt(0);if(!l)break;var c=hf(s,l);if([o,i]=n?[i,c]:[c,o],vf(o,Kc.ZWJ)&&vf(i,Kc.ExtPict)&&!bf(n?e.substring(0,a):e.substring(0,e.length-a)))break;if(vf(o,Kc.RI)&&vf(i,Kc.RI)&&!(u=null!==u?!u:!!n||wf(e.substring(0,e.length-a))))break;if(o!==Kc.None&&i!==Kc.None&&yf(o,i))break;a+=s.length}return a||1},Xc=/\s/,Zc=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,Jc=/['\u2018\u2019]/,Qc=(e,t,n)=>{if(n){var r=e.length-t;return[e.slice(r,e.length),e.slice(0,r)]}return[e.slice(0,t),e.slice(t)]},ef=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Xc.test(t))return!1;if(Jc.test(t)){var o=Yc(n,r),[i,a]=Qc(n,o,r);if(e(i,a,r))return!0}return!Zc.test(t)},tf=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(rf(r.charCodeAt(0))){var o=e.charAt(t-n-1);if(nf(o.charCodeAt(0))){yield o+r,n++;continue}}yield r}},nf=e=>e>=55296&&e<=56319,rf=e=>e>=56320&&e<=57343;!function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"}(Kc||(Kc={}));var of=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,af=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,uf=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,sf=/^[\u1100-\u115F\uA960-\uA97C]$/,lf=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,cf=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,ff=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,df=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,pf=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,hf=(e,t)=>{var n=Kc.Any;return-1!==e.search(of)&&(n|=Kc.Extend),8205===t&&(n|=Kc.ZWJ),t>=127462&&t<=127487&&(n|=Kc.RI),-1!==e.search(af)&&(n|=Kc.Prepend),-1!==e.search(uf)&&(n|=Kc.SpacingMark),-1!==e.search(sf)&&(n|=Kc.L),-1!==e.search(lf)&&(n|=Kc.V),-1!==e.search(cf)&&(n|=Kc.T),-1!==e.search(ff)&&(n|=Kc.LV),-1!==e.search(df)&&(n|=Kc.LVT),-1!==e.search(pf)&&(n|=Kc.ExtPict),n};function vf(e,t){return 0!=(e&t)}var gf=[[Kc.L,Kc.L|Kc.V|Kc.LV|Kc.LVT],[Kc.LV|Kc.V,Kc.V|Kc.T],[Kc.LVT|Kc.T,Kc.T],[Kc.Any,Kc.Extend|Kc.ZWJ],[Kc.Any,Kc.SpacingMark],[Kc.Prepend,Kc.Any],[Kc.ZWJ,Kc.ExtPict],[Kc.RI,Kc.RI]];function yf(e,t){return-1===gf.findIndex((n=>vf(e,n[0])&&vf(t,n[1])))}var mf=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,bf=e=>-1!==e.search(mf),Ef=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,wf=e=>{var t=e.match(Ef);return null!==t&&t[0].length/2%2==1},Sf=e=>Ll(e)&&Rf.isNodeList(e.children)&&!Nf.isEditor(e),Cf={isAncestor:e=>Ll(e)&&Rf.isNodeList(e.children),isElement:Sf,isElementList:e=>Array.isArray(e)&&e.every((e=>Cf.isElement(e))),isElementProps:e=>void 0!==e.children,isElementType:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"type";return Sf(e)&&e[n]===t},matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}},Df=["text"],Af=["text"];function xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tf=new WeakMap,Nf={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=Nf.path(e,o),u="lowest"===r;for(var[s,l]of Nf.levels(e,{at:a,voids:n,match:i,reverse:u}))if(!ed.isText(s)&&!Mf.equals(a,l))return[s,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.point(e,t,{edge:"end"}),focus:Nf.end(e,[])},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,Of(Of({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=u),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:Nf.start(e,[]),focus:Nf.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var u of Nf.positions(e,Of(Of({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=u),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[Nf.start(e,t),Nf.end(e,t)],end:(e,t)=>Nf.point(e,t,{edge:"end"}),first(e,t){var n=Nf.path(e,t,{edge:"start"});return Nf.node(e,n)},fragment(e,t){var n=Nf.range(e,t);return Rf.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>Nf.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>ed.isText(t)||Nf.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>ed.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Cf.isElement(t)&&!e.isInline(t),isEditor(e){if(!Ll(e))return!1;var t=Tf.get(e);if(void 0!==t)return t;var n="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||Ll(e.marks))&&(null===e.selection||qf.isRange(e.selection))&&Rf.isNodeList(e.children)&&jf.isOperationList(e.operations);return Tf.set(e,n),n},isEnd(e,t,n){var r=Nf.end(e,n);return $f.equals(t,r)},isEdge:(e,t,n)=>Nf.isStart(e,t,n)||Nf.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&ed.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Cf.isElement(t)&&e.isInline(t),isNormalizing(e){var t=Mc.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=Nf.start(e,n);return $f.equals(t,r)},isVoid:(e,t)=>Cf.isElement(t)&&e.isVoid(t),last(e,t){var n=Nf.path(e,t,{edge:"end"});return Nf.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[Rf.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],u=Nf.path(e,n);for(var[s,l]of Rf.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&Nf.isVoid(e,s)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(qf.isExpanded(n)){var[r]=Nf.nodes(e,{match:ed.isText});if(r){var[o]=r;return qc(o,Df)}return{}}var{anchor:i}=n,{path:a}=i,[u]=Nf.leaf(e,a);if(0===i.offset){var s=Nf.previous(e,{at:a,match:ed.isText}),l=Nf.above(e,{match:t=>Nf.isBlock(e,t)});if(s&&l){var[c,f]=s,[,d]=l;Mf.isAncestor(d,f)&&(u=c)}}return qc(u,Af)},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.after(e,i,{voids:r});if(a){var[,u]=Nf.last(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{at:s,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n);return[Rf.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),n){var s,l;if(Bf.isSpan(n))s=n[0],l=n[1];else{var c=Nf.path(e,n,{edge:"start"}),f=Nf.path(e,n,{edge:"end"});s=i?f:c,l=i?c:f}var d,p=Rf.nodes(e,{reverse:i,from:s,to:l,pass:t=>{var[n]=t;return!a&&Nf.isVoid(e,n)}}),h=[];for(var[v,g]of p){var y=d&&0===Mf.compare(g,d[1]);if("highest"!==r||!y)if(u(v,g))if("lowest"===r&&y)d=[v,g];else{var m="lowest"===r?d:[v,g];m&&(o?h.push(m):yield m),d=[v,g]}else if(o&&!y&&ed.isText(v))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>Lc.get(e)||[];if(Nf.isNormalizing(e)){if(n){var o=Array.from(Rf.nodes(e),(e=>{var[,t]=e;return t}));Lc.set(e,o)}0!==r(e).length&&Nf.withoutNormalizing(e,(()=>{for(var t of r(e))if(Rf.has(e,t)){var n=Nf.node(e,t),[o,i]=n;Cf.isElement(o)&&0===o.children.length&&e.normalizeNode(n)}for(var a=42*r(e).length,u=0;0!==r(e).length;){if(u>a)throw new Error("\n Could not completely normalize the editor after ".concat(a," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n "));var s=r(e).pop();if(Rf.has(e,s)){var l=Nf.node(e,s);e.normalizeNode(l)}u++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Nf.path(e,t,n),o=Mf.parent(r);return Nf.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(Mf.isPath(t))if("start"===o){var[,i]=Rf.first(e,t);t=i}else if("end"===o){var[,a]=Rf.last(e,t);t=a}return qf.isRange(t)&&(t="start"===o?qf.start(t):"end"===o?qf.end(t):Mf.common(t.anchor.path,t.focus.path)),$f.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Rf.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pathRefs(e).delete(o),o.current=null,t}};return Nf.pathRefs(e).add(o),o},pathRefs(e){var t=zc.get(e);return t||(t=new Set,zc.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(Mf.isPath(t)){var o;if("end"===r){var[,i]=Rf.last(e,t);o=i}else{var[,a]=Rf.first(e,t);o=a}var u=Rf.get(e,o);if(!ed.isText(u))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?u.text.length:0}}if(qf.isRange(t)){var[s,l]=qf.edges(t);return"start"===r?s:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.pointRefs(e).delete(o),o.current=null,t}};return Nf.pointRefs(e).add(o),o},pointRefs(e){var t=Hc.get(e);return t||(t=new Set,Hc.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var a=Nf.range(e,n),[u,s]=qf.edges(a),l=o?s:u,c=!1,f="",d=0,p=0,h=0;for(var[v,g]of Nf.nodes(e,{at:n,reverse:o,voids:i})){if(Cf.isElement(v)){if(!i&&e.isVoid(v)){yield Nf.start(e,g);continue}if(e.isInline(v))continue;if(Nf.hasInlines(e,v)){var y=Mf.isAncestor(g,s.path)?s:Nf.end(e,g),m=Mf.isAncestor(g,u.path)?u:Nf.start(e,g);f=Nf.string(e,{anchor:m,focus:y},{voids:i}),c=!0}}if(ed.isText(v)){var b=Mf.equals(g,l.path);for(b?(p=o?l.offset:v.text.length-l.offset,h=l.offset):(p=v.text.length,h=o?p:0),(b||c||"offset"===r)&&(yield{path:g,offset:h},c=!1);;){if(0===d){if(""===f)break;d=E(f,r,o),f=Qc(f,d,o)[1]}if(h=o?h-d:h+d,(p-=d)<0){d=-p;break}d=0,yield{path:g,offset:h}}}}}function E(e,t,n){return"character"===t?Yc(e,n):"word"===t?function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,r=!1;e.length>0;){var o=Yc(e,t),[i,a]=Qc(e,o,t);if(ef(i,a,t))r=!0,n+=o;else{if(r)break;n+=o}e=a}return n}(e,n):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=Nf.before(e,i,{voids:r});if(a){var[,u]=Nf.first(e,[]),s=[a.path,u];if(Mf.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(Mf.isPath(i)){var[l]=Nf.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=Nf.nodes(e,{reverse:!0,at:s,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>qf.isRange(t)&&!n?t:{anchor:Nf.start(e,t),focus:Nf.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return Nf.rangeRefs(e).delete(o),o.current=null,t}};return Nf.rangeRefs(e).add(o),o},rangeRefs(e){var t=Uc.get(e);return t||(t=new Set,Uc.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){Mc.set(e,t)},start:(e,t)=>Nf.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=Nf.range(e,t),[i,a]=qf.edges(o),u="";for(var[s,l]of Nf.nodes(e,{at:o,match:ed.isText,voids:r})){var c=s.text;Mf.equals(l,a.path)&&(c=c.slice(0,a.offset)),Mf.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=qf.edges(t);if(0!==o.offset||0!==i.offset||qf.isCollapsed(t))return t;var a=Nf.above(e,{at:i,match:t=>Nf.isBlock(e,t)}),u=a?a[1]:[],s={anchor:Nf.start(e,[]),focus:i},l=!0;for(var[c,f]of Nf.nodes(e,{at:s,match:ed.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||Mf.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Nf.above(e,Of(Of({},t),{},{match:t=>Nf.isVoid(e,t)}))},withoutNormalizing(e,t){var n=Nf.isNormalizing(e);Nf.setNormalizing(e,!1);try{t()}finally{Nf.setNormalizing(e,n)}Nf.normalize(e)}},kf={isLocation:e=>Mf.isPath(e)||$f.isPoint(e)||qf.isRange(e)},Bf={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(Mf.isPath)},If=["children"],Ff=["text"],Pf=new WeakMap,Rf={ancestor(e,t){var n=Rf.get(e,t);if(ed.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.ancestors(t,n)){var o=[Rf.ancestor(e,r),r];yield o}},child(e,t){if(ed.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Rf.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var u=Rf.child(o,a),s=t.concat(a);yield[u,s],a=r?a-1:a+1}},common(e,t,n){var r=Mf.common(t,n);return[Rf.get(e,r),r]},descendant(e,t){var n=Rf.get(e,t);if(Nf.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))Cf.isElement(n)&&(yield[n,r])},extractProps:e=>Cf.isAncestor(e)?qc(e,If):qc(e,Ff),first(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(ed.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var n=Fc({children:e.children},(e=>{var[n,r]=qf.edges(t),o=Rf.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!qf.includes(t,n)}});for(var[,i]of o){if(!qf.includes(t,i)){var a=Rf.parent(e,i),u=i[i.length-1];a.children.splice(u,1)}if(Mf.equals(i,r.path)){var s=Rf.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(Mf.equals(i,n.path)){var l=Rf.leaf(e,i);l.text=l.text.slice(n.offset)}}Nf.isEditor(e)&&(e.selection=null)}));return n.children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(ed.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>ed.isText(e)||Cf.isElement(e)||Nf.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Pf.get(e);if(void 0!==t)return t;var n=e.every((e=>Rf.isNode(e)));return Pf.set(e,n),n},last(e,t){for(var n=t.slice(),r=Rf.get(e,n);r&&!ed.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Rf.get(e,t);if(!ed.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of Mf.levels(t,n)){var o=Rf.get(e,r);yield[o,r]}},matches:(e,t)=>Cf.isElement(e)&&Cf.isElementProps(t)&&Cf.matches(e,t)||ed.isText(e)&&ed.isTextProps(t)&&ed.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(r?Mf.isBefore(u,i):Mf.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||ed.isText(s)||0===s.children.length||null!=n&&!1!==n([s,u])){if(0===u.length)break;if(!r){var l=Mf.next(u);if(Rf.has(e,l)){u=l,s=Rf.get(e,u);continue}}if(r&&0!==u[u.length-1])u=Mf.previous(u),s=Rf.get(e,u);else u=Mf.parent(u),s=Rf.get(e,u),a.add(s)}else{a.add(s);var c=r?s.children.length-1:0;Mf.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=Rf.get(e,u)}},parent(e,t){var n=Mf.parent(t),r=Rf.get(e,n);if(ed.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>ed.isText(e)?e.text:e.children.map(Rf.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Rf.nodes(e,t))ed.isText(n)&&(yield[n,r])}};function _f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_f(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf={isNodeOperation:e=>jf.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!Ll(e))return!1;switch(e.type){case"insert_node":case"remove_node":return Mf.isPath(e.path)&&Rf.isNode(e.node);case"insert_text":case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&Mf.isPath(e.path);case"merge_node":return"number"==typeof e.position&&Mf.isPath(e.path)&&Ll(e.properties);case"move_node":return Mf.isPath(e.path)&&Mf.isPath(e.newPath);case"set_node":return Mf.isPath(e.path)&&Ll(e.properties)&&Ll(e.newProperties);case"set_selection":return null===e.properties&&qf.isRange(e.newProperties)||null===e.newProperties&&qf.isRange(e.properties)||Ll(e.properties)&&Ll(e.newProperties);case"split_node":return Mf.isPath(e.path)&&"number"==typeof e.position&&Ll(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>jf.isOperation(e))),isSelectionOperation:e=>jf.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>jf.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Lf(Lf({},e),{},{type:"remove_node"});case"insert_text":return Lf(Lf({},e),{},{type:"remove_text"});case"merge_node":return Lf(Lf({},e),{},{type:"split_node",path:Mf.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(Mf.equals(t,n))return e;if(Mf.isSibling(n,t))return Lf(Lf({},e),{},{path:t,newPath:n});var r=Mf.transform(n,e),o=Mf.transform(Mf.next(n),e);return Lf(Lf({},e),{},{path:r,newPath:o});case"remove_node":return Lf(Lf({},e),{},{type:"insert_node"});case"remove_text":return Lf(Lf({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Lf(Lf({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Lf(Lf({},e),{},null==u?{properties:s,newProperties:null}:null==s?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Lf(Lf({},e),{},{type:"merge_node",path:Mf.next(e.path)})}}},Mf={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=Mf.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return Mf.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return Mf.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===Mf.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===Mf.compare(e,t),isBefore:(e,t)=>-1===Mf.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===Mf.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===Mf.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===Mf.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===Mf.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&Mf.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!Mf.isAncestor(t,e)&&!Mf.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(r=>{var{affinity:o="forward"}=n;if(e&&0!==(null==e?void 0:e.length)){if(null===r)return null;switch(t.type){case"insert_node":var{path:i}=t;(Mf.equals(i,r)||Mf.endsBefore(i,r)||Mf.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(Mf.equals(a,r)||Mf.isAncestor(a,r))return null;Mf.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;Mf.equals(u,r)||Mf.endsBefore(u,r)?r[u.length-1]-=1:Mf.isAncestor(u,r)&&(r[u.length-1]-=1,r[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(Mf.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else Mf.endsBefore(l,r)?r[l.length-1]+=1:Mf.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(Mf.equals(f,d))return;if(Mf.isAncestor(f,r)||Mf.equals(f,r)){var p=d.slice();return Mf.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}Mf.isSibling(f,d)&&(Mf.isAncestor(d,r)||Mf.equals(d,r))?Mf.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:Mf.endsBefore(d,r)||Mf.equals(d,r)||Mf.isAncestor(d,r)?(Mf.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):Mf.endsBefore(f,r)&&(Mf.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}}))}},zf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=Mf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Hf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $f={compare(e,t){var n=Mf.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===$f.compare(e,t),isBefore:(e,t)=>-1===$f.compare(e,t),equals:(e,t)=>e.offset===t.offset&&Mf.equals(e.path,t.path),isPoint:e=>Ll(e)&&"number"==typeof e.offset&&Mf.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=Mf.transform(o,t,n);break;case"insert_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":Mf.equals(t.path,o)&&(e.offset+=t.position),e.path=Mf.transform(o,t,n);break;case"remove_text":Mf.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(Mf.equals(t.path,o)||Mf.isAncestor(t.path,o))return null;e.path=Mf.transform(o,t,n);break;case"split_node":if(Mf.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=Mf.transform(o,t,Uf(Uf({},n),{},{affinity:"forward"})))}else e.path=Mf.transform(o,t,n)}}))}},Vf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=$f.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Gf=["anchor","focus"];function Wf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qf={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return qf.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=qf.edges(e);return t},equals:(e,t)=>$f.equals(e.anchor,t.anchor)&&$f.equals(e.focus,t.focus),includes(e,t){if(qf.isRange(t)){if(qf.includes(e,t.anchor)||qf.includes(e,t.focus))return!0;var[n,r]=qf.edges(e),[o,i]=qf.edges(t);return $f.isBefore(n,o)&&$f.isAfter(r,i)}var[a,u]=qf.edges(e),s=!1,l=!1;return $f.isPoint(t)?(s=$f.compare(t,a)>=0,l=$f.compare(t,u)<=0):(s=Mf.compare(t,a.path)>=0,l=Mf.compare(t,u.path)<=0),s&&l},intersection(e,t){var n=qc(e,Gf),[r,o]=qf.edges(e),[i,a]=qf.edges(t),u=$f.isBefore(r,i)?i:r,s=$f.isBefore(o,a)?o:a;return $f.isBefore(s,u)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:u,focus:s},n)},isBackward(e){var{anchor:t,focus:n}=e;return $f.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return $f.equals(t,n)},isExpanded:e=>!qf.isCollapsed(e),isForward:e=>!qf.isBackward(e),isRange:e=>Ll(e)&&$f.isPoint(e.anchor)&&$f.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=qf.edges(e);return t},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Fc(e,(e=>{if(null===e)return null;var r,o,{affinity:i="inward"}=n;if("inward"===i){var a=qf.isCollapsed(e);qf.isForward(e)?(r="forward",o=a?r:"backward"):(r="backward",o=a?r:"forward")}else"outward"===i?qf.isForward(e)?(r="backward",o="forward"):(r="forward",o="backward"):(r=i,o=i);var u=$f.transform(e.anchor,t,{affinity:r}),s=$f.transform(e.focus,t,{affinity:o});if(!u||!s)return null;e.anchor=u,e.focus=s}))}},Kf={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=qf.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}},Yf=(e,t)=>{for(var n in e){var r=e[n],o=t[n];if(Ll(r)&&Ll(o)){if(!Yf(r,o))return!1}else if(Array.isArray(r)&&Array.isArray(o)){if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(r[i]!==o[i])return!1}else if(r!==o)return!1}for(var a in t)if(void 0===e[a]&&void 0!==t[a])return!1;return!0},Xf=["text"],Zf=["anchor","focus"];function Jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ed={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return qc(e,Xf)}return Yf(r?o(e):e,r?o(t):t)},isText:e=>Ll(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>ed.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Qf({},e)];for(var r of t){var o=qc(r,Zf),[i,a]=qf.edges(r),u=[],s=0;for(var l of n){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&0!==f)u.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<s){var v=a.offset-f;h=Qf(Qf({},d),{},{text:d.text.slice(v)}),d=Qf(Qf({},d),{},{text:d.text.slice(0,v)})}if(i.offset>f){var g=i.offset-f;p=Qf(Qf({},d),{},{text:d.text.slice(0,g)}),d=Qf(Qf({},d),{},{text:d.text.slice(g)})}Object.assign(d,o),p&&u.push(p),u.push(d),h&&u.push(h)}}n=u}return n}};function td(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?td(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rd={transform(e,t){e.children=Pc(e.children);var n=e.selection&&Pc(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Rf.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[u,s]of qf.points(t))t[s]=$f.transform(u,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Rf.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[v,g]of qf.points(t))t[g]=$f.transform(v,n);break;case"merge_node":var{path:y}=n,m=Rf.get(e,y),b=Mf.previous(y),E=Rf.get(e,b),w=Rf.parent(e,y),S=y[y.length-1];if(ed.isText(m)&&ed.isText(E))E.text+=m.text;else{if(ed.isText(m)||ed.isText(E))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(E));E.children.push(...m.children)}if(w.children.splice(S,1),t)for(var[C,D]of qf.points(t))t[D]=$f.transform(C,n);break;case"move_node":var{path:A,newPath:x}=n;if(Mf.isAncestor(A,x))throw new Error("Cannot move a path [".concat(A,"] to new path [").concat(x,"] because the destination is inside itself."));var O=Rf.get(e,A),T=Rf.parent(e,A),N=A[A.length-1];T.children.splice(N,1);var k=Mf.transform(A,n),B=Rf.get(e,Mf.parent(k)),I=k[k.length-1];if(B.children.splice(I,0,O),t)for(var[F,P]of qf.points(t))t[P]=$f.transform(F,n);break;case"remove_node":var{path:R}=n,_=R[R.length-1];if(Rf.parent(e,R).children.splice(_,1),t)for(var[L,j]of qf.points(t)){var M=$f.transform(L,n);if(null!=t&&null!=M)t[j]=M;else{var z=void 0,H=void 0;for(var[U,$]of Rf.texts(e)){if(-1!==Mf.compare($,R)){H=[U,$];break}z=[U,$]}var V=!1;z&&H&&(V=Mf.equals(H[1],R)?!Mf.hasPrevious(H[1]):Mf.common(z[1],R).length<Mf.common(H[1],R).length),z&&!V?(L.path=z[1],L.offset=z[0].text.length):H?(L.path=H[1],L.offset=0):t=null}}break;case"remove_text":var{path:G,offset:W,text:q}=n;if(0===q.length)break;var K=Rf.leaf(e,G),Y=K.text.slice(0,W),X=K.text.slice(W+q.length);if(K.text=Y+X,t)for(var[Z,J]of qf.points(t))t[J]=$f.transform(Z,n);break;case"set_node":var{path:Q,properties:ee,newProperties:te}=n;if(0===Q.length)throw new Error("Cannot set properties on the root node!");var ne=Rf.get(e,Q);for(var re in te){if("children"===re||"text"===re)throw new Error('Cannot set the "'.concat(re,'" property of nodes!'));var oe=te[re];null==oe?delete ne[re]:ne[re]=oe}for(var ie in ee)te.hasOwnProperty(ie)||delete ne[ie];break;case"set_selection":var{newProperties:ae}=n;if(null==ae)t=ae;else{if(null==t){if(!qf.isRange(ae))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ae)," when there is no current selection."));t=nd({},ae)}for(var ue in ae){var se=ae[ue];if(null==se){if("anchor"===ue||"focus"===ue)throw new Error('Cannot remove the "'.concat(ue,'" selection property'));delete t[ue]}else t[ue]=se}}break;case"split_node":var{path:le,position:ce,properties:fe}=n;if(0===le.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(le,"] because the root node cannot be split."));var de,pe=Rf.get(e,le),he=Rf.parent(e,le),ve=le[le.length-1];if(ed.isText(pe)){var ge=pe.text.slice(0,ce),ye=pe.text.slice(ce);pe.text=ge,de=nd(nd({},fe),{},{text:ye})}else{var me=pe.children.slice(0,ce),be=pe.children.slice(ce);pe.children=me,de=nd(nd({},fe),{},{children:be})}if(he.children.splice(ve+1,0,de),t)for(var[Ee,we]of qf.points(t))t[we]=$f.transform(Ee,n)}return t})(e,n,t)}finally{e.children=Rc(e.children),e.selection=n?Ml(n)?Rc(n):n:null}}},od=["text"],id=["children"];function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ad(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ad(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sd={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:u,select:s}=n;if(Rf.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?Nf.end(e,[]):[0],s=!0),null==s&&(s=!1),qf.isRange(a))if(r||(a=Nf.unhangRange(e,a)),qf.isCollapsed(a))a=a.anchor;else{var[,c]=qf.edges(a),f=Nf.pointRef(e,c);md.delete(e,{at:a}),a=f.unref()}if($f.isPoint(a)){null==u&&(u=ed.isText(l)?e=>ed.isText(e):e.isInline(l)?t=>ed.isText(t)||Nf.isInline(e,t):t=>Nf.isBlock(e,t));var[d]=Nf.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!d)return;var[,p]=d,h=Nf.pathRef(e,p),v=Nf.isEnd(e,a,p);md.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=h.unref();a=v?Mf.next(g):g}var y=Mf.parent(a),m=a[a.length-1];if(o||!Nf.void(e,{at:y})){for(var b of t){var E=y.concat(m);m++,e.apply({type:"insert_node",path:E,node:b}),a=Mf.next(a)}if(a=Mf.previous(a),s){var w=Nf.end(e,a);w&&md.select(e,w)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=Mf.isPath(n)?fd(e,n):t=>Nf.isBlock(e,t)),n){var a=Nf.nodes(e,{at:n,match:i,mode:r,voids:o}),u=Array.from(a,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=Nf.node(e,Mf.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var v=Mf.next(d);md.moveNodes(e,{at:l,to:v,voids:o}),md.removeNodes(e,{at:d,voids:o})}else if(0===p)md.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var g=Mf.next(d);md.moveNodes(e,{at:l,to:g,voids:o})}else{var y=Mf.next(l),m=Mf.next(d);md.splitNodes(e,{at:y,voids:o}),md.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(Mf.isPath(r)){var[u]=Nf.parent(e,r);n=e=>u.children.includes(e)}else n=t=>Nf.isBlock(e,t);if(!o&&qf.isRange(r)&&(r=Nf.unhangRange(e,r)),qf.isRange(r))if(qf.isCollapsed(r))r=r.anchor;else{var[,s]=qf.edges(r),l=Nf.pointRef(e,s);md.delete(e,{at:r}),r=l.unref(),null==t.at&&md.select(e,r)}var[c]=Nf.nodes(e,{at:r,match:n,voids:i,mode:a}),f=Nf.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,v]=f;if(0!==p.length&&0!==v.length){var g,y,m=Mf.next(v),b=Mf.common(p,v),E=Mf.isSibling(p,v),w=Array.from(Nf.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),S=Nf.above(e,{at:p,mode:"highest",match:t=>w.includes(t)&&ld(e,t)}),C=S&&Nf.pathRef(e,S[1]);if(ed.isText(d)&&ed.isText(h)){var D=qc(d,od);y=h.text.length,g=D}else{if(!Cf.isElement(d)||!Cf.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));D=qc(d,id);y=h.children.length,g=D}E||md.moveNodes(e,{at:p,to:m,voids:i}),C&&md.removeNodes(e,{at:C.current,voids:i}),Cf.isElement(h)&&Nf.isEmpty(e,h)||ed.isText(h)&&""===h.text&&0!==v[v.length-1]?md.removeNodes(e,{at:v,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){Nf.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=Mf.isPath(r)?fd(e,r):t=>Nf.isBlock(e,t));var u=Nf.pathRef(e,n),s=Nf.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=u.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),u.current&&Mf.isSibling(d,f)&&Mf.isAfter(d,f)&&(u.current=Mf.next(u.current))}u.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),!n&&qf.isRange(i)&&(i=Nf.unhangRange(e,i));var u=Nf.nodes(e,{at:i,match:a,mode:o,voids:r}),s=Array.from(u,(t=>{var[,n]=t;return Nf.pathRef(e,n)}));for(var l of s){var c=l.unref();if(c){var[f]=Nf.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=n;if(o){if(null==r&&(r=Mf.isPath(o)?fd(e,o):t=>Nf.isBlock(e,t)),!i&&qf.isRange(o)&&(o=Nf.unhangRange(e,o)),u&&qf.isRange(o)){if(qf.isCollapsed(o)&&Nf.leaf(e,o.anchor)[0].text.length>0)return;var l=Nf.rangeRef(e,o,{affinity:"inward"}),[c,f]=qf.edges(o),d="lowest"===a?"lowest":"highest",p=Nf.isEnd(e,f,f.path);md.splitNodes(e,{at:f,match:r,mode:d,voids:s,always:!p});var h=Nf.isStart(e,c,c.path);md.splitNodes(e,{at:c,match:r,mode:d,voids:s,always:!h}),o=l.unref(),null==n.at&&md.select(e,o)}for(var[v,g]of Nf.nodes(e,{at:o,match:r,mode:a,voids:s})){var y={},m={};if(0!==g.length){var b=!1;for(var E in t)"children"!==E&&"text"!==E&&t[E]!==v[E]&&(b=!0,v.hasOwnProperty(E)&&(y[E]=v[E]),null!=t[E]&&(m[E]=t[E]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(null==o&&(o=t=>Nf.isBlock(e,t)),qf.isRange(i)&&(i=cd(e,i)),Mf.isPath(i)){var s=i,l=Nf.point(e,s),[c]=Nf.parent(e,s);o=e=>e===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=Nf.pointRef(e,i,{affinity:"backward"}),[d]=Nf.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=Nf.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,v]=p;if(Cf.isElement(h)&&e.isInline(h)){var g=Nf.after(e,v);if(!g){var y=Mf.next(v);md.insertNodes(e,{text:""},{at:y,voids:r}),g=Nf.point(e,y)}i=g,u=!0}a=i.path.length-v.length+1,u=!0}var m=Nf.pointRef(e,i),b=i.path.length-a,[,E]=d,w=i.path.slice(0,b),S=0===a?i.offset:i.path[b]+0;for(var[C,D]of Nf.levels(e,{at:w,reverse:!0,voids:r})){var A=!1;if(D.length<E.length||0===D.length||!r&&Nf.isVoid(e,C))break;var x=f.current,O=Nf.isEnd(e,x,D);if(u||!f||!Nf.isEdge(e,x,D)){A=!0;var T=Rf.extractProps(C);e.apply({type:"split_node",path:D,position:S,properties:T})}S=D[D.length-1]+(A||O?1:0)}if(null==t.at){var N=m.current||Nf.end(e,[]);md.select(e,N)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;md.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=Mf.isPath(i)?fd(e,i):t=>Nf.isBlock(e,t)),Mf.isPath(i)&&(i=Nf.range(e,i));var u=qf.isRange(i)?Nf.rangeRef(e,i):null,s=Nf.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(s,(t=>{var[,n]=t;return Nf.pathRef(e,n)})).reverse(),c=function(t){var n=t.unref(),[i]=Nf.node(e,n),a=Nf.range(e,n);r&&u&&(a=qf.intersection(u.current,a)),md.liftNodes(e,{at:a,match:e=>Cf.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);u&&u.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:u=e.selection}=n;if(u){if(null==a&&(a=Mf.isPath(u)?fd(e,u):e.isInline(t)?t=>Nf.isInline(e,t)||ed.isText(t):t=>Nf.isBlock(e,t)),o&&qf.isRange(u)){var[s,l]=qf.edges(u),c=Nf.rangeRef(e,u,{affinity:"inward"});md.splitNodes(e,{at:l,match:a,voids:i}),md.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),null==n.at&&md.select(e,u)}var f=Array.from(Nf.nodes(e,{at:u,match:e.isInline(t)?t=>Nf.isBlock(e,t):e=>Nf.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=qf.isRange(u)?qf.intersection(u,Nf.range(e,d)):u;if(p){var h=Array.from(Nf.nodes(e,{at:p,match:a,mode:r,voids:i}));if(h.length>0){var v=function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r;if(0===o.length&&0===a.length)return"continue";var u=Mf.equals(o,a)?Mf.parent(o):Mf.common(o,a),s=Nf.range(e,o,a),l=Nf.node(e,u),[c]=l,f=u.length+1,d=Mf.next(a.slice(0,f)),p=ud(ud({},t),{},{children:[]});md.insertNodes(e,p,{at:d,voids:i}),md.moveNodes(e,{at:s,match:e=>Cf.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}();if("continue"===v)continue}}}}}))}},ld=(e,t)=>{if(Cf.isElement(t)){var n=t;return!!Nf.isVoid(e,t)||1===n.children.length&&ld(e,n.children[0])}return!Nf.isEditor(t)},cd=(e,t)=>{if(qf.isCollapsed(t))return t.anchor;var[,n]=qf.edges(t),r=Nf.pointRef(e,n);return md.delete(e,{at:t}),r.unref()},fd=(e,t)=>{var[n]=Nf.node(e,t);return e=>e===n};function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hd={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)md.select(e,r.anchor);else if("focus"===n)md.select(e,r.focus);else if("start"===n){var[o]=qf.edges(r);md.select(e,o)}else if("end"===n){var[,i]=qf.edges(r);md.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=qf.isBackward(n)?"focus":"anchor"),"end"===a&&(a=qf.isBackward(n)?"anchor":"focus");var{anchor:u,focus:s}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?Nf.before(e,u,l):Nf.after(e,u,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?Nf.before(e,s,l):Nf.after(e,s,l);d&&(c.focus=d)}md.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=Nf.range(e,t),n)md.setSelection(e,t);else{if(!qf.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=qf.isBackward(r)?"focus":"anchor"),"end"===o&&(o=qf.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,u="anchor"===o?i:a;md.setSelection(e,{["anchor"===o?"anchor":"focus"]:pd(pd({},u),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!$f.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!$f.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},vd={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Nf.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(qf.isRange(a)&&qf.isCollapsed(a)&&(a=a.anchor),$f.isPoint(a)){var s=Nf.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?Nf.before(e,a,c)||Nf.start(e,[]):Nf.after(e,a,c)||Nf.end(e,[])},u=!0}}if(Mf.isPath(a))md.removeNodes(e,{at:a,voids:i});else if(!qf.isCollapsed(a)){if(!u){var[,f]=qf.edges(a),d=Nf.end(e,[]);$f.equals(f,d)||(a=Nf.unhangRange(e,a,{voids:i}))}var[p,h]=qf.edges(a),v=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:p,voids:i}),g=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:h,voids:i}),y=v&&g&&!Mf.equals(v[1],g[1]),m=Mf.equals(p.path,h.path),b=i?null:Nf.void(e,{at:p,mode:"highest"}),E=i?null:Nf.void(e,{at:h,mode:"highest"});if(b){var w=Nf.before(e,p);w&&v&&Mf.isAncestor(v[1],w.path)&&(p=w)}if(E){var S=Nf.after(e,h);S&&g&&Mf.isAncestor(g[1],S.path)&&(h=S)}var C,D=[];for(var A of Nf.nodes(e,{at:a,voids:i})){var[x,O]=A;C&&0===Mf.compare(O,C)||(!i&&Nf.isVoid(e,x)||!Mf.isCommon(O,p.path)&&!Mf.isCommon(O,h.path))&&(D.push(A),C=O)}var T=Array.from(D,(t=>{var[,n]=t;return Nf.pathRef(e,n)})),N=Nf.pointRef(e,p),k=Nf.pointRef(e,h);if(!m&&!b){var B=N.current,[I]=Nf.leaf(e,B),{path:F}=B,{offset:P}=p,R=I.text.slice(P);R.length>0&&e.apply({type:"remove_text",path:F,offset:P,text:R})}for(var _ of T){var L=_.unref();md.removeNodes(e,{at:L,voids:i})}if(!E){var j=k.current,[M]=Nf.leaf(e,j),{path:z}=j,H=m?p.offset:0,U=M.text.slice(H,h.offset);U.length>0&&e.apply({type:"remove_text",path:z,offset:H,text:U})}!m&&y&&k.current&&N.current&&md.mergeNodes(e,{at:k.current,hanging:!0,voids:i});var $=n?N.unref()||k.unref():k.unref()||N.unref();null==t.at&&$&&md.select(e,$)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(qf.isRange(i))if(r||(i=Nf.unhangRange(e,i)),qf.isCollapsed(i))i=i.anchor;else{var[,a]=qf.edges(i);if(!o&&Nf.void(e,{at:a}))return;var u=Nf.pointRef(e,a);md.delete(e,{at:i}),i=u.unref()}else Mf.isPath(i)&&(i=Nf.start(e,i));if(o||!Nf.void(e,{at:i})){var s=Nf.above(e,{at:i,match:t=>Nf.isInline(e,t),mode:"highest",voids:o});if(s){var[,l]=s;if(Nf.isEnd(e,i,l))i=Nf.after(e,l);else if(Nf.isStart(e,i,l)){i=Nf.before(e,l)}}var c=Nf.above(e,{match:t=>Nf.isBlock(e,t),at:i,voids:o}),[,f]=c,d=Nf.isStart(e,i,f),p=Nf.isEnd(e,i,f),h=d&&p,v=!d||d&&p,g=!p,[,y]=Rf.first({children:t},[]),[,m]=Rf.last({children:t},[]),b=[],E=t=>{var[n,r]=t;return!(0===r.length)&&(!!h||!(v&&Mf.isAncestor(r,y)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&Mf.isAncestor(r,m)&&Cf.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var w of Rf.nodes({children:t},{pass:E}))E(w)&&b.push(w);var S=[],C=[],D=[],A=!0,x=!1;for(var[O]of b)Cf.isElement(O)&&!e.isInline(O)?(A=!1,x=!0,C.push(O)):A?S.push(O):D.push(O);var[T]=Nf.nodes(e,{at:i,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),[,N]=T,k=Nf.isStart(e,i,N),B=Nf.isEnd(e,i,N),I=Nf.pathRef(e,p?Mf.next(f):f),F=Nf.pathRef(e,B?Mf.next(N):N),P=Nf.pathRef(e,f);md.splitNodes(e,{at:i,match:t=>x?Nf.isBlock(e,t):ed.isText(t)||Nf.isInline(e,t),mode:x?"lowest":"highest",voids:o});var R=Nf.pathRef(e,!k||k&&B?Mf.next(N):N);if(md.insertNodes(e,S,{at:R.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),h&&C.length&&md.delete(e,{at:P.unref(),voids:o}),md.insertNodes(e,C,{at:I.current,match:t=>Nf.isBlock(e,t),mode:"lowest",voids:o}),md.insertNodes(e,D,{at:F.current,match:t=>ed.isText(t)||Nf.isInline(e,t),mode:"highest",voids:o}),!n.at){var _;_=D.length>0?Mf.previous(F.current):C.length>0?Mf.previous(I.current):Mf.previous(R.current);var L=Nf.end(e,_);md.select(e,L)}R.unref(),I.unref(),F.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Nf.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(Mf.isPath(o)&&(o=Nf.range(e,o)),qf.isRange(o))if(qf.isCollapsed(o))o=o.anchor;else{var i=qf.end(o);if(!r&&Nf.void(e,{at:i}))return;var a=Nf.pointRef(e,i);md.delete(e,{at:o,voids:r}),o=a.unref(),md.setSelection(e,{anchor:o,focus:o})}if(r||!Nf.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}}))}};function gd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gd(Object(n),!0).forEach((function(t){_c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=yd(yd(yd(yd({},rd),sd),hd),vd),bd="[object Map]",Ed="[object Set]",wd=/^\[object .+?Constructor\]$/,Sd=/^(?:0|[1-9]\d*)$/,Cd="[\\ud800-\\udfff]",Dd="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",Ad="\\ud83c[\\udffb-\\udfff]",xd="[^\\ud800-\\udfff]",Od="(?:\\ud83c[\\udde6-\\uddff]){2}",Td="[\\ud800-\\udbff][\\udc00-\\udfff]",Nd="(?:"+Dd+"|"+Ad+")"+"?",kd="[\\ufe0e\\ufe0f]?"+Nd+("(?:\\u200d(?:"+[xd,Od,Td].join("|")+")[\\ufe0e\\ufe0f]?"+Nd+")*"),Bd="(?:"+[xd+Dd+"?",Dd,Od,Td,Cd].join("|")+")",Id=RegExp(Ad+"(?="+Ad+")|"+Bd+kd,"g"),Fd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Pd="object"==typeof e&&e&&e.Object===Object&&e,Rd="object"==typeof self&&self&&self.Object===Object&&self,_d=Pd||Rd||Function("return this")();function Ld(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function jd(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Md(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function zd(e){return function(e){return Fd.test(e)}(e)?function(e){return e.match(Id)||[]}(e):function(e){return e.split("")}(e)}var Hd,Ud,$d=Function.prototype,Vd=Object.prototype,Gd=_d["__core-js_shared__"],Wd=function(){var e=/[^.]+$/.exec(Gd&&Gd.keys&&Gd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),qd=$d.toString,Kd=Vd.hasOwnProperty,Yd=Vd.toString,Xd=RegExp("^"+qd.call(Kd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=_d.Symbol,Jd=Zd?Zd.iterator:void 0,Qd=Vd.propertyIsEnumerable,ep=(Hd=Object.keys,Ud=Object,function(e){return Hd(Ud(e))}),tp=hp(_d,"DataView"),np=hp(_d,"Map"),rp=hp(_d,"Promise"),op=hp(_d,"Set"),ip=hp(_d,"WeakMap"),ap=yp(tp),up=yp(np),sp=yp(rp),lp=yp(op),cp=yp(ip);function fp(e,t){var n=mp(e)||function(e){return function(e){return Sp(e)&&bp(e)}(e)&&Kd.call(e,"callee")&&(!Qd.call(e,"callee")||"[object Arguments]"==Yd.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Kd.call(e,i)||o&&("length"==i||gp(i,r))||n.push(i);return n}function dp(e){if(!wp(e)||function(e){return!!Wd&&Wd in e}(e))return!1;var t=Ep(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Xd:wd;return t.test(yp(e))}function pp(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Vd,t!==r)return ep(e);var t,n,r,o=[];for(var i in Object(e))Kd.call(e,i)&&"constructor"!=i&&o.push(i);return o}function hp(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return dp(n)?n:void 0}var vp=function(e){return Yd.call(e)};function gp(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||Sd.test(e))&&e>-1&&e%1==0&&e<t}function yp(e){if(null!=e){try{return qd.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(tp&&"[object DataView]"!=vp(new tp(new ArrayBuffer(1)))||np&&vp(new np)!=bd||rp&&"[object Promise]"!=vp(rp.resolve())||op&&vp(new op)!=Ed||ip&&"[object WeakMap]"!=vp(new ip))&&(vp=function(e){var t=Yd.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?yp(n):void 0;if(r)switch(r){case ap:return"[object DataView]";case up:return bd;case sp:return"[object Promise]";case lp:return Ed;case cp:return"[object WeakMap]"}return t});var mp=Array.isArray;function bp(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ep(e)}function Ep(e){var t=wp(e)?Yd.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function wp(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Sp(e){return!!e&&"object"==typeof e}function Cp(e){return e?Ld(e,function(e){return bp(e)?fp(e):pp(e)}(e)):[]}var Dp=function(e){if(!e)return[];if(bp(e))return function(e){return"string"==typeof e||!mp(e)&&Sp(e)&&"[object String]"==Yd.call(e)}(e)?zd(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Jd&&e[Jd])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Jd]());var t=vp(e);return(t==bd?jd:t==Ed?Md:Cp)(e)};function Ap(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function xp(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:Ap(t[n])&&Ap(e[n])&&Object.keys(t[n]).length>0&&xp(e[n],t[n])}))}var Op={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Tp(){var e="undefined"!=typeof document?document:{};return xp(e,Op),e}var Np={document:Op,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function kp(){var e="undefined"!=typeof window?window:{};return xp(e,Np),e}function Bp(e){return Bp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bp(e)}function Ip(e,t){return Ip=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ip(e,t)}function Fp(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Pp(e,t,n){return Pp=Fp()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ip(o,n.prototype),o},Pp.apply(null,arguments)}function Rp(e){var t="function"==typeof Map?new Map:void 0;return Rp=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Pp(e,arguments,Bp(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ip(n,e)},Rp(e)}var _p=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Rp(Array));function Lp(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Lp(e)):t.push(e)})),t}function jp(e,t){return Array.prototype.filter.call(e,t)}function Mp(e,t){var n=kp(),r=Tp(),o=[];if(!t&&e instanceof _p)return e;if(!e)return new _p(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var u=r.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof _p)return e;o=e}return new _p(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function zp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Hp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Up(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Lp(t.map((function(e){return e.split(" ")})));return jp(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function $p(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Vp(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Gp(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Wp(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function qp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function u(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Mp(t).is(o))i.apply(t,n);else for(var r=Mp(t).parents(),a=0;a<r.length;a+=1)Mp(r[a]).is(o)&&i.apply(r[a],n)}}function s(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:u}),d.addEventListener(p,u,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:s}),d.addEventListener(h,s,a)}}return this}function Kp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=r.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this}function Yp(){var e=kp();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xp(){var e=kp();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Zp(){if(this.length>0){var e=kp(),t=Tp(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,s=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-i,left:r.left+s-a}}return null}function Jp(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Qp(){for(var e=kp(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function eh(e,t){var n,r=kp();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function th(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function nh(e){return Mp(jp(this,e))}function rh(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function oh(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function ih(e){var t,n,r=kp(),o=Tp(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Mp(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof _p){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1}function ah(){for(var e,t=Tp(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof _p)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function uh(e){var t,n,r=Tp();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof _p)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function sh(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Mp(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Mp(t)}function lh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Mp(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Mp(t)}function ch(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Mp(t)}function fh(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Mp(r[o]).is(e)||t.push(r[o]);return Mp(t)}function dh(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ph(){for(var e=0;e<this.length;e+=1){var t=this[e];if(1===t.nodeType){for(var n=0;n<t.childNodes.length;n+=1)t.childNodes[n].parentNode&&t.childNodes[n].parentNode.removeChild(t.childNodes[n]);t.textContent=""}}return this}Mp.fn=_p.prototype;var hh="resize scroll".split(" ");function vh(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)hh.indexOf(e)<0&&(e in this[o]?this[o][e]():Mp(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var gh=vh("click"),yh=vh("focus"),mh="[object GeneratorFunction]",bh=/^(?:0|[1-9]\d*)$/;function Eh(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var wh=Object.prototype,Sh=wh.hasOwnProperty,Ch=wh.toString,Dh=wh.propertyIsEnumerable,Ah=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function xh(e,t){var n=Fh(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ph(e)}(e)&&Sh.call(e,"callee")&&(!Dh.call(e,"callee")||"[object Arguments]"==Ch.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Sh.call(e,i)||o&&("length"==i||Ih(i,r))||n.push(i);return n}var Oh,Th,Nh=(Oh=function(e,t){return e&&kh(e,t,Rh)},function(e,t){if(null==e)return e;if(!Ph(e))return Oh(e,t);for(var n=e.length,r=Th?n:-1,o=Object(e);(Th?r--:++r<n)&&!1!==t(o[r],r,o););return e}),kh=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var s=a[e?u:++o];if(!1===n(i[s],s,i))break}return t}}();function Bh(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||wh,t!==r)return Ah(e);var t,n,r,o=[];for(var i in Object(e))Sh.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Ih(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||bh.test(e))&&e>-1&&e%1==0&&e<t}var Fh=Array.isArray;function Ph(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?Ch.call(e):"";return"[object Function]"==t||t==mh}(e)}function Rh(e){return Ph(e)?xh(e):Bh(e)}function _h(e){return e}var Lh=function(e,t){return(Fh(e)?Eh:Nh)(e,"function"==typeof t?t:_h)};let jh=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};var Mh=/^\s+|\s+$/g,zh=/^[-+]0x[0-9a-f]+$/i,Hh=/^0b[01]+$/i,Uh=/^0o[0-7]+$/i,$h=parseInt,Vh="object"==typeof e&&e&&e.Object===Object&&e,Gh="object"==typeof self&&self&&self.Object===Object&&self,Wh=Vh||Gh||Function("return this")(),qh=Object.prototype.toString,Kh=Math.max,Yh=Math.min,Xh=function(){return Wh.Date.now()};function Zh(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=Xh();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Yh(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Xh(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Qh(t)||0,Jh(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Kh(Qh(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(Xh())},m}function Jh(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qh(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==qh.call(e)}(e))return NaN;if(Jh(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Jh(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Mh,"");var n=Hh.test(e);return n||Uh.test(e)?$h(e.slice(2),n?2:8):zh.test(e)?NaN:+e}var ev=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Jh(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Zh(e,t,{leading:r,maxWait:t,trailing:o})};const tv={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function nv(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const rv=Array.isArray;function ov(e){return"string"==typeof e||"number"==typeof e||e instanceof String||e instanceof Number}function iv(e){return void 0===e}function av(e){return void 0!==e}const uv=nv("",{},[],void 0,void 0);function sv(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function lv(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const cv=["create","update","remove","destroy","pre","post"];function fv(e,t){const n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=void 0!==t?t:tv;for(const t of cv)for(const r of e){const e=r[t];void 0!==e&&n[t].push(e)}function o(e){const t=e.id?"#"+e.id:"",n=e.getAttribute("class"),o=n?"."+n.split(" ").join("."):"";return nv(r.tagName(e).toLowerCase()+t+o,{},[],void 0,e)}function i(e,t){return function(){if(0==--t){const t=r.parentNode(e);r.removeChild(t,e)}}}function a(e,t){var o,i;let u,s=e.data;if(void 0!==s){const t=null===(o=s.hook)||void 0===o?void 0:o.init;av(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)iv(e.text)&&(e.text=""),e.elm=r.createComment(e.text);else if(void 0!==c){const o=c.indexOf("#"),f=c.indexOf(".",o),d=o>0?o:c.length,p=f>0?f:c.length,h=-1!==o||-1!==f?c.slice(0,Math.min(d,p)):c,v=e.elm=av(s)&&av(u=s.ns)?r.createElementNS(u,h,s):r.createElement(h,s);for(d<p&&v.setAttribute("id",c.slice(d+1,p)),f>0&&v.setAttribute("class",c.slice(p+1).replace(/\./g," ")),u=0;u<n.create.length;++u)n.create[u](uv,e);if(rv(l))for(u=0;u<l.length;++u){const e=l[u];null!=e&&r.appendChild(v,a(e,t))}else ov(e.text)&&r.appendChild(v,r.createTextNode(e.text));const g=e.data.hook;av(g)&&(null===(i=g.create)||void 0===i||i.call(g,uv,e),g.insert&&t.push(e))}else e.elm=r.createTextNode(e.text);return e.elm}function u(e,t,n,o,i,u){for(;o<=i;++o){const i=n[o];null!=i&&r.insertBefore(e,a(i,u),t)}}function s(e){var t,r;const o=e.data;if(void 0!==o){null===(r=null===(t=null==o?void 0:o.hook)||void 0===t?void 0:t.destroy)||void 0===r||r.call(t,e);for(let t=0;t<n.destroy.length;++t)n.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&s(n)}}}function l(e,t,o,a){for(var u,l;o<=a;++o){let a,c;const f=t[o];if(null!=f)if(av(f.sel)){s(f),a=n.remove.length+1,c=i(f.elm,a);for(let e=0;e<n.remove.length;++e)n.remove[e](f,c);const e=null===(l=null===(u=null==f?void 0:f.data)||void 0===u?void 0:u.hook)||void 0===l?void 0:l.remove;av(e)?e(f,c):c()}else r.removeChild(e,f.elm)}}function c(e,t,o){var i,s,f,d,p;const h=null===(i=t.data)||void 0===i?void 0:i.hook;null===(s=null==h?void 0:h.prepatch)||void 0===s||s.call(h,e,t);const v=t.elm=e.elm,g=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let r=0;r<n.update.length;++r)n.update[r](e,t);null===(d=null===(f=t.data.hook)||void 0===f?void 0:f.update)||void 0===d||d.call(f,e,t)}iv(t.text)?av(g)&&av(y)?g!==y&&function(e,t,n,o){let i,s,f,d,p=0,h=0,v=t.length-1,g=t[0],y=t[v],m=n.length-1,b=n[0],E=n[m];for(;p<=v&&h<=m;)null==g?g=t[++p]:null==y?y=t[--v]:null==b?b=n[++h]:null==E?E=n[--m]:sv(g,b)?(c(g,b,o),g=t[++p],b=n[++h]):sv(y,E)?(c(y,E,o),y=t[--v],E=n[--m]):sv(g,E)?(c(g,E,o),r.insertBefore(e,g.elm,r.nextSibling(y.elm)),g=t[++p],E=n[--m]):sv(y,b)?(c(y,b,o),r.insertBefore(e,y.elm,g.elm),y=t[--v],b=n[++h]):(void 0===i&&(i=lv(t,p,v)),s=i[b.key],iv(s)?r.insertBefore(e,a(b,o),g.elm):(f=t[s],f.sel!==b.sel?r.insertBefore(e,a(b,o),g.elm):(c(f,b,o),t[s]=void 0,r.insertBefore(e,f.elm,g.elm))),b=n[++h]);(p<=v||h<=m)&&(p>v?(d=null==n[m+1]?null:n[m+1].elm,u(e,d,n,h,m,o)):l(e,t,p,v))}(v,g,y,o):av(y)?(av(e.text)&&r.setTextContent(v,""),u(v,null,y,0,y.length-1,o)):av(g)?l(v,g,0,g.length-1):av(e.text)&&r.setTextContent(v,""):e.text!==t.text&&(av(g)&&l(v,g,0,g.length-1),r.setTextContent(v,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let i,u,s;const f=[];for(i=0;i<n.pre.length;++i)n.pre[i]();for(function(e){return void 0!==e.sel}(e)||(e=o(e)),sv(e,t)?c(e,t,f):(u=e.elm,s=r.parentNode(u),a(t,f),null!==s&&(r.insertBefore(s,t.elm,r.nextSibling(u)),l(s,[e],0,0))),i=0;i<f.length;++i)f[i].data.hook.insert(f[i]);for(i=0;i<n.post.length;++i)n.post[i]();return t}}function dv(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&dv(n,t[e].children,t[e].sel)}}function pv(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),rv(n)?r=n:ov(n)?o=n.toString():n&&n.sel&&(r=[n])):null!=t&&(rv(t)?r=t:ov(t)?o=t.toString():t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)ov(r[i])&&(r[i]=nv(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||dv(a,r,e),nv(e,a,r,o,void 0)}function hv(e,t){let n;const r=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(n in o=o||{},i=i||{},i){const e=i[n];o[n]!==e&&(!0===e?r.setAttribute(n,""):!1===e?r.removeAttribute(n):120!==n.charCodeAt(0)?r.setAttribute(n,e):58===n.charCodeAt(3)?r.setAttributeNS("http://www.w3.org/XML/1998/namespace",n,e):58===n.charCodeAt(5)?r.setAttributeNS("http://www.w3.org/1999/xlink",n,e):r.setAttribute(n,e))}for(n in o)n in i||r.removeAttribute(n)}}const vv={create:hv,update:hv};function gv(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const yv={create:gv,update:gv},mv=/[A-Z]/g;function bv(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(mv,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(mv,"-$&").toLowerCase(),i[r]))}const Ev={create:bv,update:bv};function wv(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)wv(e[r],t,n)}function Sv(e,t){const n=e.type,r=t.data.on;r&&r[n]&&wv(r[n],t,e)}function Cv(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(n!==i){if(n&&r)if(i)for(u in n)i[u]||o.removeEventListener(u,r,!1);else for(u in n)o.removeEventListener(u,r,!1);if(i){const r=t.listener=e.listener||function e(t){Sv(t,e.vnode)};if(r.vnode=t,n)for(u in i)n[u]||a.addEventListener(u,r,!1);else for(u in i)a.addEventListener(u,r,!1)}}}const Dv={create:Cv,update:Cv,destroy:Cv};function Av(e,t){let n,r,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(n in a=a||{},u=u||{},u)r=u[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const xv={create:Av,update:Av},Ov="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let Tv=!1;function Nv(e,t,n){!function(e){Ov((function(){Ov(e)}))}((function(){e[t]=n}))}function kv(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],u&&n===i.delayed[e]||Nv(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const Bv={pre:function(){Tv=!1},create:kv,update:kv,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;Tv||(e.elm.offsetLeft,Tv=!0);const o=e.elm;let i=0;const a=n.remove;let u=0;const s=[];for(r in a)s.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==s.indexOf(l[i])&&u++;o.addEventListener("transitionend",(function(e){e.target===o&&--u,0===u&&t()}))}};function Iv(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?Iv(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(nv(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function Fv(e,t,...n){const r=Iv(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?pv(e,t,r[0].text):pv(e,t,r)}Fv||(Fv={});var Pv=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Rv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_v="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lv="[\\ud800-\\udfff]",jv="["+_v+"]",Mv="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",zv="\\d+",Hv="[\\u2700-\\u27bf]",Uv="[a-z\\xdf-\\xf6\\xf8-\\xff]",$v="[^\\ud800-\\udfff"+_v+zv+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Vv="\\ud83c[\\udffb-\\udfff]",Gv="[^\\ud800-\\udfff]",Wv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Kv="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Yv="(?:"+Uv+"|"+$v+")",Xv="(?:"+Kv+"|"+$v+")",Zv="(?:"+Mv+"|"+Vv+")"+"?",Jv="[\\ufe0e\\ufe0f]?"+Zv+("(?:\\u200d(?:"+[Gv,Wv,qv].join("|")+")[\\ufe0e\\ufe0f]?"+Zv+")*"),Qv="(?:"+[Hv,Wv,qv].join("|")+")"+Jv,eg="(?:"+[Gv+Mv+"?",Mv,Wv,qv,Lv].join("|")+")",tg=RegExp("['’]","g"),ng=RegExp(Mv,"g"),rg=RegExp(Vv+"(?="+Vv+")|"+eg+Jv,"g"),og=RegExp([Kv+"?"+Uv+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[jv,Kv,"$"].join("|")+")",Xv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[jv,Kv+Yv,"$"].join("|")+")",Kv+"?"+Yv+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Kv+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",zv,Qv].join("|"),"g"),ig=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),ag=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ug="object"==typeof e&&e&&e.Object===Object&&e,sg="object"==typeof self&&self&&self.Object===Object&&self,lg=ug||sg||Function("return this")();var cg,fg=(cg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"ss"},function(e){return null==cg?void 0:cg[e]});function dg(e){return ig.test(e)}function pg(e){return dg(e)?function(e){return e.match(rg)||[]}(e):function(e){return e.split("")}(e)}var hg=Object.prototype.toString,vg=lg.Symbol,gg=vg?vg.prototype:void 0,yg=gg?gg.toString:void 0;function mg(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hg.call(e)}(e))return yg?yg.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function bg(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function Eg(e){return null==e?"":mg(e)}var wg,Sg=(wg=function(e,t,n){return t=t.toLowerCase(),e+(n?Dg(Eg(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=Eg(e),void 0===(t=n?void 0:t)?function(e){return ag.test(e)}(e)?function(e){return e.match(og)||[]}(e):function(e){return e.match(Pv)||[]}(e):e.match(t)||[]}(function(e){return(e=Eg(e))&&e.replace(Rv,fg).replace(ng,"")}(e).replace(tg,"")),wg,"")});var Cg,Dg=(Cg="toUpperCase",function(e){var t=dg(e=Eg(e))?pg(e):void 0,n=t?t[0]:e.charAt(0),r=t?bg(t,1).join(""):e.slice(1);return n[Cg]()+r});for(var Ag=Sg,xg="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Og={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Tg={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:xg?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Ng={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},kg=1;kg<20;kg++)Ng["f"+kg]=111+kg;function Bg(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in Og)r[Og[a]]=!1;var u=!0,s=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(u=(c=f.next()).done);u=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=Fg(d),v=Og[h];if(d.length>1&&!v&&!Tg[d]&&!Ng[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&v||(n?r.key=h:r.which=Ig(d)),v&&(r[v]=!p||null)}}catch(e){s=!0,l=e}finally{try{!u&&f.return&&f.return()}finally{if(s)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}(t,e)}))};return null==n?o:o(n)}function Ig(e){return e=Fg(e),Ng[e]||e.toUpperCase().charCodeAt(0)}function Fg(e){return e=e.toLowerCase(),e=Tg[e]||e}var Pg=Bg,Rg=function(e,t){return Bg(e,{byKey:!0},t)},_g=/^\s+|\s+$/g,Lg=/^[-+]0x[0-9a-f]+$/i,jg=/^0b[01]+$/i,Mg=/^0o[0-7]+$/i,zg=parseInt,Hg="object"==typeof e&&e&&e.Object===Object&&e,Ug="object"==typeof self&&self&&self.Object===Object&&self,$g=Hg||Ug||Function("return this")(),Vg=Object.prototype.toString,Gg=Math.max,Wg=Math.min,qg=function(){return $g.Date.now()};function Kg(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Yg(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Vg.call(e)}(e))return NaN;if(Kg(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Kg(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(_g,"");var n=jg.test(e);return n||Mg.test(e)?zg(e.slice(2),n?2:8):Lg.test(e)?NaN:+e}var Xg,Zg=function(e,t,n){var r,o,i,a,u,s,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,u=setTimeout(g,t),c?p(e):a}function v(e){var n=e-s;return void 0===s||n>=t||n<0||f&&e-l>=i}function g(){var e=qg();if(v(e))return y(e);u=setTimeout(g,function(e){var n=t-(e-s);return f?Wg(n,i-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=qg(),n=v(e);if(r=arguments,o=this,s=e,n){if(void 0===u)return h(s);if(f)return u=setTimeout(g,t),p(s)}return void 0===u&&(u=setTimeout(g,t)),a}return t=Yg(t)||0,Kg(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Gg(Yg(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=o=u=void 0},m.flush=function(){return void 0===u?a:y(qg())},m},Jg=n((function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",u="[object Date]",s="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",v="[object Set]",g="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",S="[object Float64Array]",C="[object Int8Array]",D="[object Int16Array]",A="[object Int32Array]",x="[object Uint8Array]",O="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",k=/\w*$/,B=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,F={};F[i]=F["[object Array]"]=F[b]=F[E]=F[a]=F[u]=F[w]=F[S]=F[C]=F[D]=F[A]=F[c]=F[f]=F[d]=F[h]=F[v]=F[g]=F[y]=F[x]=F[O]=F[T]=F[N]=!0,F["[object Error]"]=F[s]=F[m]=!1;var P="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,_=P||R||Function("return this")(),L=n&&!n.nodeType&&n,j=L&&t&&!t.nodeType&&t,M=j&&j.exports===L;function z(e,t){return e.set(t[0],t[1]),e}function H(e,t){return e.add(t),e}function U(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function $(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function V(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function G(e,t){return function(n){return e(t(n))}}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var q=Array.prototype,K=Function.prototype,Y=Object.prototype,X=_["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=M?_.Buffer:void 0,re=_.Symbol,oe=_.Uint8Array,ie=G(Object.getPrototypeOf,Object),ae=Object.create,ue=Y.propertyIsEnumerable,se=q.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=G(Object.keys,Object),de=Le(_,"DataView"),pe=Le(_,"Map"),he=Le(_,"Promise"),ve=Le(_,"Set"),ge=Le(_,"WeakMap"),ye=Le(Object,"create"),me=Ue(de),be=Ue(pe),Ee=Ue(he),we=Ue(ve),Se=Ue(ge),Ce=re?re.prototype:void 0,De=Ce?Ce.valueOf:void 0;function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){this.__data__=new xe(e)}function Ne(e,t){var n=Ve(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Ge(e)}(e)&&Q.call(e,"callee")&&(!ue.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||ze(a,r))||n.push(a);return n}function ke(e,t,n){var r=e[t];Q.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Be(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1}function Ie(e,t,n,r,o,p,m){var B;if(r&&(B=p?r(e,o,p,m):r(e)),void 0!==B)return B;if(!Ke(e))return e;var I=Ve(e);if(I){if(B=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,B)}else{var P=Me(e),R=P==s||P==l;if(We(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(P==d||P==i||R&&!p){if($(e))return p?e:{};if(B=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(R?{}:e),!t)return function(e,t){return Re(e,je(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(B,e))}else{if(!F[P])return p?e:{};B=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Pe(e);case a:case u:return new o(+e);case E:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case S:case C:case D:case A:case x:case O:case T:case N:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return U(t?n(V(e),!0):V(e),z,new e.constructor)}(e,r,n);case f:case g:return new o(e);case h:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){return U(t?n(W(e),!0):W(e),H,new e.constructor)}(e,r,n);case y:return function(e){return De?Object(De.call(e)):{}}(e)}}(e,P,Ie,t)}}m||(m=new Te);var _=m.get(e);if(_)return _;if(m.set(e,B),!I)var L=n?function(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,je)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(o,i){L&&(o=e[i=o]),ke(B,i,Ie(o,t,n,r,i,e,m))})),B}function Fe(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(qe(e)||$(e)?te:B).test(Ue(e))}function Pe(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Re(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],u=r?r(n[a],e[a],a,n,e):void 0;ke(n,a,void 0===u?e[a]:u)}return n}function _e(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ae.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ae.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},Ae.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=Be(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=Be(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return Be(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=Be(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(pe||xe),string:new Ae}},Oe.prototype.delete=function(e){return _e(this,e).delete(e)},Oe.prototype.get=function(e){return _e(this,e).get(e)},Oe.prototype.has=function(e){return _e(this,e).has(e)},Oe.prototype.set=function(e,t){return _e(this,e).set(e,t),this},Te.prototype.clear=function(){this.__data__=new xe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Oe(r)}return n.set(e,t),this};var je=le?G(le,Object):function(){return[]},Me=function(e){return ee.call(e)};function ze(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function Ue(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){return e===t||e!=e&&t!=t}(de&&Me(new de(new ArrayBuffer(1)))!=E||pe&&Me(new pe)!=c||he&&Me(he.resolve())!=p||ve&&Me(new ve)!=v||ge&&Me(new ge)!=m)&&(Me=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Ue(n):void 0;if(r)switch(r){case me:return E;case be:return c;case Ee:return p;case we:return v;case Se:return m}return t});var Ve=Array.isArray;function Ge(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!qe(e)}var We=ce||function(){return!1};function qe(e){var t=Ke(e)?ee.call(e):"";return t==s||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return Ge(e)?Ne(e):function(e){if(!He(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}t.exports=function(e){return Ie(e,!0,!0)}}));function Qg(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var ey=0;function ty(e){return"__private_"+ey+++"_"+e}function ny(e,t,n){const r=[];return e.forEach((e=>"string"!=typeof e?r.push(e):t[Symbol.split](e).forEach(((e,t,o)=>{""!==e&&r.push(e),t<o.length-1&&r.push(n)})))),r}
|
|
8
8
|
/**
|
|
9
9
|
* Takes a string with placeholder variables like `%{smart_count} file selected`
|
|
10
10
|
* and replaces it with values from options `{smart_count: 5}`
|
|
@@ -15,101 +15,13 @@ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?windo
|
|
|
15
15
|
* @param {string} phrase that needs interpolation, with placeholders
|
|
16
16
|
* @param {object} options with values that will be used to replace placeholders
|
|
17
17
|
* @returns {any[]} interpolated
|
|
18
|
-
*/function ry(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=ny(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var oy=(Xg=ty("apply"),class{constructor(e){Object.defineProperty(this,Xg,{value:iy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Qg(this,Xg)[Xg],this):Qg(this,Xg)[Xg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return ry(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ry(n,t)}});function iy(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ay=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;for(;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};var uy={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:sy}=uy,ly=e=>crypto.getRandomValues(new Uint8Array(e)),cy=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var fy={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>cy(e,t,ly),customRandom:cy,urlAlphabet:sy,random:ly},dy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function py(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}py.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var hy=/[\/\+\.]/,vy=function(e,t){function n(t){var n=function(e,t,n){var r=new py(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,hy);return n&&n.length>=2}return t?n(t.split(";")[0]):n};var gy=0;function yy(e){return"__private_"+gy+++"_"+e}var my=yy("publish");class by{constructor(){Object.defineProperty(this,my,{value:Ey}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,my)[my](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}by.VERSION="2.0.3";var wy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Sy={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Cy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Dy=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)};function Ay(e){return e<10?`0${e}`:e.toString()}var Oy=function(){const e=new Date;return`${Ay(e.getHours())}:${Ay(e.getMinutes())}:${Ay(e.getSeconds())}`};var xy={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Oy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${Oy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${Oy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${Oy()}]`,...t)}}},Ty={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Ny=fy;let ky,By;function Iy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fy=0;function Py(e){return"__private_"+Fy+++"_"+e}const{nanoid:_y}=Ny,{justErrorsLogger:Ry,debugLogger:Ly}=xy;class jy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class My extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var zy=Py("plugins"),Hy=Py("storeUnsubscribe"),Uy=Py("emitter"),$y=Py("preProcessors"),Vy=Py("uploaders"),Gy=Py("postProcessors"),Wy=Py("checkRestrictions"),qy=Py("checkMinNumberOfFiles"),Ky=Py("checkRequiredMetaFieldsOnFile"),Yy=Py("checkRequiredMetaFields"),Xy=Py("showOrLogErrorAndThrow"),Zy=Py("assertNewUploadAllowed"),Jy=Py("checkAndCreateFileStateObject"),Qy=Py("startIfAutoProceed"),em=Py("addListeners"),tm=Py("updateOnlineStatus"),nm=Py("createUpload"),rm=Py("getUpload"),om=Py("removeUpload"),im=Py("runUpload");ky=Symbol.for("uppy test: getPlugins"),By=Symbol.for("uppy test: createUpload");class am{constructor(e){Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,rm,{value:ym}),Object.defineProperty(this,nm,{value:gm}),Object.defineProperty(this,em,{value:vm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,qy,{value:sm}),Object.defineProperty(this,Wy,{value:um}),Object.defineProperty(this,zy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Hy,{writable:!0,value:void 0}),Object.defineProperty(this,Uy,{writable:!0,value:ay()}),Object.defineProperty(this,$y,{writable:!0,value:new Set}),Object.defineProperty(this,Vy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,tm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ty;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new by,logger:Ry,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Ly),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ev(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Dy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Iy(this,Hy)[Hy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Iy(this,em)[em]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Iy(this,Uy)[Uy].emit(e,...n)}on(e,t){return Iy(this,Uy)[Uy].on(e,t),this}once(e,t){return Iy(this,Uy)[Uy].once(e,t),this}off(e,t){return Iy(this,Uy)[Uy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new oy([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Iy(this,$y)[$y].add(e)}removePreProcessor(e){return Iy(this,$y)[$y].delete(e)}addPostProcessor(e){Iy(this,Gy)[Gy].add(e)}removePostProcessor(e){return Iy(this,Gy)[Gy].delete(e)}addUploader(e){Iy(this,Vy)[Vy].add(e)}removeUploader(e){return Iy(this,Vy)[Vy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Iy(this,Wy)[Wy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Iy(this,Zy)[Zy](e);const{files:t}=this.getState();let n=Iy(this,Jy)[Jy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Iy(this,Qy)[Qy](),n.id}addFiles(e){Iy(this,Zy)[Zy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Iy(this,Jy)[Jy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Iy(this,Qy)[Qy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Iy(this,nm)[nm](t,{forceAllowNewUpload:!0});return Iy(this,im)[im](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Iy(this,nm)[nm]([e],{forceAllowNewUpload:!0});return Iy(this,im)[im](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Iy(this,zy)[zy]?Iy(this,zy)[zy][n.type].push(n):Iy(this,zy)[zy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Iy(this,zy)[zy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[ky](e){return Iy(this,zy)[zy][e]}iteratePlugins(e){Object.values(Iy(this,zy)[zy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Iy(this,zy)[zy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Iy(this,Hy)[Hy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Iy(this,tm)[tm]),window.removeEventListener("offline",Iy(this,tm)[tm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Iy(this,im)[im](e):(Iy(this,om)[om](e),Promise.reject(new Error("Nonexistent upload")))}[By](){return Iy(this,nm)[nm](...arguments)}addResultData(e,t){if(!Iy(this,rm)[rm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Iy(this,zy)[zy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Iy(this,qy)[qy](t),Iy(this,Yy)[Yy](t)})).catch((e=>{Iy(this,Xy)[Xy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Iy(this,nm)[nm](r);return Iy(this,im)[im](o)})).catch((e=>{Iy(this,Xy)[Xy](e,{showInformer:!1})})))}}function um(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new jy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){if(!a.some((t=>t.indexOf("/")>-1?!!e.type&&vy(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new jy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new jy(this.i18n("exceedsSize",{size:dy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new jy(this.i18n("exceedsSize",{size:dy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new jy(this.i18n("inferiorSize",{size:dy(r)}))}function sm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new jy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function lm(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new jy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Iy(this,Xy)[Xy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function cm(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Iy(this,Ky)[Ky](t)}));if(t.length)throw new My(t,`${this.i18n("missingRequiredMetaField")}`)}function fm(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function dm(e){const{allowNewUpload:t}=this.getState();!1===t&&Iy(this,Xy)[Xy](new jy(this.i18n("noMoreFilesAllowed")),{file:e})}function pm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=wy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Sy?Sy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=wy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Cy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Cy(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new jy(this.i18n("noDuplicates",{fileName:r}));Iy(this,Xy)[Xy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Iy(this,Xy)[Xy](new jy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));Iy(this,Wy)[Wy](l,t)}catch(e){Iy(this,Xy)[Xy](e,{file:l})}return l}function hm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function vm(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Iy(this,Xy)[Xy](e,{throwErr:!1})}else Iy(this,Xy)[Xy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Iy(this,Gy)[Gy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Iy(this,Ky)[Ky](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Iy(this,tm)[tm]),window.addEventListener("offline",Iy(this,tm)[tm]),setTimeout(Iy(this,tm)[tm],3e3))}function gm(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=_y();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function ym(e){const{currentUploads:t}=this.getState();return t[e]}function mm(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function bm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Iy(this,$y)[$y],...Iy(this,Vy)[Vy],...Iy(this,Gy)[Gy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Iy(this,om)[om](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Iy(this,om)[om](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}am.VERSION="2.1.3";var Em=am,wm=n((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function w(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var e;S.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,k(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&E(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,v,m,E,w,S=r&&r.__k||f,C=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=S[d])||h&&v.key==h.key&&v.type===h.type)S[d]=void 0;else for(p=0;p<C;p++){if((h=S[p])&&v.key==h.key&&v.type===h.type){S[p]=void 0;break}h=null}k(e,v,h=h||c,o,i,a,u,s,l),m=v.__e,(p=v.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==E&&(E=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=D(v,s,e):s=A(e,v,h,S,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=E,d=C;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=b(r,d+1)),P(S[d],S[d]));if(w)for(d=0;d<w.length;d++)F(w[d],w[++d],w[++d])}function D(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?D(r,t,n):A(n,r,r,o,r.__e,t));return t}function A(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function O(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function x(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?N:T,i):e.removeEventListener(t,i?N:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](r.event?r.event(e):e)}function N(e){this.l[e.type+!0](r.event?r.event(e):e)}function k(e,t,n,o,i,a,u,s,l){var c,f,d,h,v,g,b,E,w,S,D,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof A){if(E=t.props,w=(c=A.contextType)&&o[c.__c],S=c?w?w.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(E,S):(t.__c=f=new m(E,S),f.constructor=A,f.render=_),w&&w.sub(f),f.props=E,f.state||(f.state={}),f.context=S,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,A.getDerivedStateFromProps(E,f.__s))),h=f.props,v=f.state,d)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&E!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(E,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(E,f.__s,S)||t.__v===n.__v){f.props=E,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(E,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=S,f.props=E,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=I(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function I(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!g&&(g?l.localName===g:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||x(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||x(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&x(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&x(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function _(e,t,n){return this.constructor(e,n)}function R(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],k(t,e=(!i&&o||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){R(t,n,e)},t.isValidElement=i,t.options=r,t.render=R,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Sm=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Cm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new oy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Am=0;function Om(e){return"__private_"+Am+++"_"+e}const{render:xm}=wm;var Tm=Om("updateUI");class Nm extends Cm{constructor(){super(...arguments),Object.defineProperty(this,Tm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Sm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Dm(this,Tm)[Tm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(xm(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),xm(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Nm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Dm(this,Tm))[Tm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var km=Nm;const{debugLogger:Bm}=xy;var Im=Em,Fm=Em,Pm=km,_m=Cm,Rm=Bm;Im.Uppy=Fm,Im.UIPlugin=Pm,Im.BasePlugin=_m,Im.debugLogger=Rm;class Lm extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var jm=Lm,Mm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new jm(e)}))};class zm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Hm,Um,$m,Vm,Gm,Wm=zm;function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Ym(e){return"__private_"+Km+++"_"+e}async function Xm(e){if(401===e.status)throw new Wm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Zm=(Um=Ym("getPostResponseFunc"),$m=Ym("getUrl"),Vm=Ym("errorHandler"),Gm=Hm=class e{constructor(e,t){Object.defineProperty(this,Vm,{value:Qm}),Object.defineProperty(this,$m,{value:Jm}),Object.defineProperty(this,Um,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(qm(this,$m)[$m](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Mm(qm(this,$m)[$m](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(qm(this,Um)[Um](t)).then(Xm).catch(qm(this,Vm)[Vm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Mm(qm(this,$m)[$m](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Mm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}},Hm.VERSION="2.0.4",Hm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Hm.VERSION}`},Gm);function Jm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Qm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${qm(this,$m)[$m](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var eb={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};var tb,nb,rb,ob,ib;let ab,ub;function sb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lb=0;function cb(e){return"__private_"+lb+++"_"+e}var fb=(tb=cb("queued"),nb=cb("emitter"),rb=cb("isOpen"),ob=cb("socket"),ib=cb("handleMessage"),ab=Symbol.for("uppy test: getSocket"),ub=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,tb,{writable:!0,value:[]}),Object.defineProperty(this,nb,{writable:!0,value:ay()}),Object.defineProperty(this,rb,{writable:!0,value:!1}),Object.defineProperty(this,ob,{writable:!0,value:void 0}),Object.defineProperty(this,ib,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return sb(this,rb)[rb]}[ab](){return sb(this,ob)[ob]}[ub](){return sb(this,tb)[tb]}open(){sb(this,ob)[ob]=new WebSocket(this.opts.target),sb(this,ob)[ob].onopen=()=>{for(sb(this,rb)[rb]=!0;sb(this,tb)[tb].length>0&&sb(this,rb)[rb];){const e=sb(this,tb)[tb].shift();this.send(e.action,e.payload)}},sb(this,ob)[ob].onclose=()=>{sb(this,rb)[rb]=!1},sb(this,ob)[ob].onmessage=sb(this,ib)[ib]}close(){var e;null==(e=sb(this,ob)[ob])||e.close()}send(e,t){sb(this,rb)[rb]?sb(this,ob)[ob].send(JSON.stringify({action:e,payload:t})):sb(this,tb)[tb].push({action:e,payload:t})}on(e,t){sb(this,nb)[nb].on(e,t)}emit(e,t){sb(this,nb)[nb].emit(e,t)}once(e,t){sb(this,nb)[nb].once(e,t)}}),db={RequestClient:Zm,Provider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||eb}},SearchProvider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:fb};var pb,hb,vb=ev((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function gb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yb=0;function mb(e){return"__private_"+yb+++"_"+e}var bb=(pb=mb("emitter"),hb=mb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),gb(this,pb)[pb]=e}on(e,t){return gb(this,hb)[hb].push([e,t]),gb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of gb(this,hb)[hb].splice(0))gb(this,pb)[pb].off(e,t)}});function Eb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wb=0;function Sb(e){return"__private_"+wb+++"_"+e}var Cb=Sb("aliveTimer"),Db=Sb("isDone"),Ab=Sb("onTimedOut"),Ob=Sb("timeout");var xb=class{constructor(e,t){Object.defineProperty(this,Cb,{writable:!0,value:void 0}),Object.defineProperty(this,Db,{writable:!0,value:!1}),Object.defineProperty(this,Ab,{writable:!0,value:void 0}),Object.defineProperty(this,Ob,{writable:!0,value:void 0}),Eb(this,Ob)[Ob]=e,Eb(this,Ab)[Ab]=t}progress(){Eb(this,Db)[Db]||Eb(this,Ob)[Ob]>0&&(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=setTimeout(Eb(this,Ab)[Ab],Eb(this,Ob)[Ob]))}done(){Eb(this,Db)[Db]||(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=null,Eb(this,Db)[Db]=!0)}};function Tb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nb=0;function kb(e){return"__private_"+Nb+++"_"+e}function Bb(){return new Error("Cancelled")}var Ib=kb("activeRequests"),Fb=kb("queuedHandlers"),Pb=kb("call"),_b=kb("queueNext"),Rb=kb("next"),Lb=kb("queue"),jb=kb("dequeue");function Mb(e){Tb(this,Ib)[Ib]+=1;let t,n=!1;try{t=e()}catch(e){throw Tb(this,Ib)[Ib]-=1,e}return{abort:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,t(),Tb(this,_b)[_b]())},done:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,Tb(this,_b)[_b]())}}}function zb(){queueMicrotask((()=>Tb(this,Rb)[Rb]()))}function Hb(){if(Tb(this,Ib)[Ib]>=this.limit)return;if(0===Tb(this,Fb)[Fb].length)return;const e=Tb(this,Fb)[Fb].shift(),t=Tb(this,Pb)[Pb](e.fn);e.abort=t.abort,e.done=t.done}function Ub(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Tb(this,jb)[jb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Tb(this,Fb)[Fb].findIndex((e=>n.priority>e.priority));return-1===r?Tb(this,Fb)[Fb].push(n):Tb(this,Fb)[Fb].splice(r,0,n),n}function $b(e){const t=Tb(this,Fb)[Fb].indexOf(e);-1!==t&&Tb(this,Fb)[Fb].splice(t,1)}var Vb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jb,{value:$b}),Object.defineProperty(this,Lb,{value:Ub}),Object.defineProperty(this,Rb,{value:Hb}),Object.defineProperty(this,_b,{value:zb}),Object.defineProperty(this,Pb,{value:Mb}),Object.defineProperty(this,Ib,{writable:!0,value:0}),Object.defineProperty(this,Fb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Tb(this,Ib)[Ib]<this.limit?Tb(this,Pb)[Pb](e):Tb(this,Lb)[Lb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=Bb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")};var Gb,Wb,qb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Kb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Yb}=Ny,{Provider:Xb,RequestClient:Zb,Socket:Jb}=db,{RateLimitedQueue:Qb,internalRateLimitedQueue:eE}=Vb;function tE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),qb(e)?(n=new jm(n,e),n):(n.request=e,n)}function nE(e){return e.data.slice(0,e.data.size,e.meta.type)}var rE=(Wb=Gb=class extends Cm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Kb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return qb(t)&&(n=new jm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),eE in this.opts?this.requests=this.opts[eE]:this.requests=new Qb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=nE(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=nE(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new bb(this.uppy);const a=new xb(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Yb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=tE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=tE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]}));new(e.remote.providerOptions.provider?Xb:Zb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new Jb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new bb(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>vb(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new xb(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[eE]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Gb.VERSION="2.0.6",Wb),oE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iE(e){var t={exports:{}};return e(t,t.exports),t.exports}var aE,uE,sE=function(e){return e&&e.Math==Math&&e},lE=sE("object"==typeof globalThis&&globalThis)||sE("object"==typeof window&&window)||sE("object"==typeof self&&self)||sE("object"==typeof oE&&oE)||function(){return this}()||Function("return this")(),cE=Object.defineProperty,fE=function(e,t){try{cE(lE,e,{value:t,configurable:!0,writable:!0})}catch(n){lE[e]=t}return t},dE=lE["__core-js_shared__"]||fE("__core-js_shared__",{}),pE=iE((function(e){(e.exports=function(e,t){return dE[e]||(dE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hE=Function.prototype,vE=hE.bind,gE=hE.call,yE=vE&&vE.bind(gE),mE=vE?function(e){return e&&yE(gE,e)}:function(e){return e&&function(){return gE.apply(e,arguments)}},bE=lE.TypeError,EE=function(e){if(null==e)throw bE("Can't call method on "+e);return e},wE=lE.Object,SE=function(e){return wE(EE(e))},CE=mE({}.hasOwnProperty),DE=Object.hasOwn||function(e,t){return CE(SE(e),t)},AE=0,OE=Math.random(),xE=mE(1..toString),TE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xE(++AE+OE,36)},NE=function(e){return"function"==typeof e},kE=function(e){return NE(e)?e:void 0},BE=function(e,t){return arguments.length<2?kE(lE[e]):lE[e]&&lE[e][t]},IE=BE("navigator","userAgent")||"",FE=lE.process,PE=lE.Deno,_E=FE&&FE.versions||PE&&PE.version,RE=_E&&_E.v8;RE&&(uE=(aE=RE.split("."))[0]>0&&aE[0]<4?1:+(aE[0]+aE[1])),!uE&&IE&&(!(aE=IE.match(/Edge\/(\d+)/))||aE[1]>=74)&&(aE=IE.match(/Chrome\/(\d+)/))&&(uE=+aE[1]);var LE=uE,jE=function(e){try{return!!e()}catch(e){return!0}},ME=!!Object.getOwnPropertySymbols&&!jE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&LE&&LE<41})),zE=ME&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,HE=pE("wks"),UE=lE.Symbol,$E=UE&&UE.for,VE=zE?UE:UE&&UE.withoutSetter||TE,GE=function(e){if(!DE(HE,e)||!ME&&"string"!=typeof HE[e]){var t="Symbol."+e;ME&&DE(UE,e)?HE[e]=UE[e]:HE[e]=zE&&$E?$E(t):VE(t)}return HE[e]},WE={};WE[GE("toStringTag")]="z";var qE="[object z]"===String(WE),KE=!jE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),YE=function(e){return"object"==typeof e?null!==e:NE(e)},XE=lE.document,ZE=YE(XE)&&YE(XE.createElement),JE=function(e){return ZE?XE.createElement(e):{}},QE=!KE&&!jE((function(){return 7!=Object.defineProperty(JE("div"),"a",{get:function(){return 7}}).a})),ew=lE.String,tw=lE.TypeError,nw=function(e){if(YE(e))return e;throw tw(ew(e)+" is not an object")},rw=Function.prototype.call,ow=rw.bind?rw.bind(rw):function(){return rw.apply(rw,arguments)},iw=mE({}.isPrototypeOf),aw=lE.Object,uw=zE?function(e){return"symbol"==typeof e}:function(e){var t=BE("Symbol");return NE(t)&&iw(t.prototype,aw(e))},sw=lE.String,lw=function(e){try{return sw(e)}catch(e){return"Object"}},cw=lE.TypeError,fw=function(e){if(NE(e))return e;throw cw(lw(e)+" is not a function")},dw=function(e,t){var n=e[t];return null==n?void 0:fw(n)},pw=lE.TypeError,hw=lE.TypeError,vw=GE("toPrimitive"),gw=function(e){var t=function(e,t){if(!YE(e)||uw(e))return e;var n,r=dw(e,vw);if(r){if(void 0===t&&(t="default"),n=ow(r,e,t),!YE(n)||uw(n))return n;throw hw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;if(NE(n=e.valueOf)&&!YE(r=ow(n,e)))return r;if("string"!==t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;throw pw("Can't convert object to primitive value")}(e,t)}(e,"string");return uw(t)?t:t+""},yw=lE.TypeError,mw=Object.defineProperty,bw={f:KE?mw:function(e,t,n){if(nw(e),t=gw(t),nw(n),QE)try{return mw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw yw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ew=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ww=KE?function(e,t,n){return bw.f(e,t,Ew(1,n))}:function(e,t,n){return e[t]=n,e},Sw=mE(Function.toString);NE(dE.inspectSource)||(dE.inspectSource=function(e){return Sw(e)});var Cw,Dw,Aw,Ow=dE.inspectSource,xw=lE.WeakMap,Tw=NE(xw)&&/native code/.test(Ow(xw)),Nw=pE("keys"),kw=function(e){return Nw[e]||(Nw[e]=TE(e))},Bw={},Iw=lE.TypeError,Fw=lE.WeakMap;if(Tw||dE.state){var Pw=dE.state||(dE.state=new Fw),_w=mE(Pw.get),Rw=mE(Pw.has),Lw=mE(Pw.set);Cw=function(e,t){if(Rw(Pw,e))throw new Iw("Object already initialized");return t.facade=e,Lw(Pw,e,t),t},Dw=function(e){return _w(Pw,e)||{}},Aw=function(e){return Rw(Pw,e)}}else{var jw=kw("state");Bw[jw]=!0,Cw=function(e,t){if(DE(e,jw))throw new Iw("Object already initialized");return t.facade=e,ww(e,jw,t),t},Dw=function(e){return DE(e,jw)?e[jw]:{}},Aw=function(e){return DE(e,jw)}}var Mw={set:Cw,get:Dw,has:Aw,enforce:function(e){return Aw(e)?Dw(e):Cw(e,{})},getterFor:function(e){return function(t){var n;if(!YE(t)||(n=Dw(t)).type!==e)throw Iw("Incompatible receiver, "+e+" required");return n}}},zw=Function.prototype,Hw=KE&&Object.getOwnPropertyDescriptor,Uw=DE(zw,"name"),$w={EXISTS:Uw,PROPER:Uw&&"something"===function(){}.name,CONFIGURABLE:Uw&&(!KE||KE&&Hw(zw,"name").configurable)},Vw=iE((function(e){var t=$w.CONFIGURABLE,n=Mw.get,r=Mw.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;NE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!DE(i,"name")||t&&i.name!==f)&&ww(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==lE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ww(e,n,i)):l?e[n]=i:fE(n,i)})(Function.prototype,"toString",(function(){return NE(this)&&n(this).source||Ow(this)}))})),Gw=mE({}.toString),Ww=mE("".slice),qw=function(e){return Ww(Gw(e),8,-1)},Kw=GE("toStringTag"),Yw=lE.Object,Xw="Arguments"==qw(function(){return arguments}()),Zw=qE?qw:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yw(e),Kw))?n:Xw?qw(t):"Object"==(r=qw(t))&&NE(t.callee)?"Arguments":r},Jw=qE?{}.toString:function(){return"[object "+Zw(this)+"]"};qE||Vw(Object.prototype,"toString",Jw,{unsafe:!0});var Qw={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eS=JE("span").classList,tS=eS&&eS.constructor&&eS.constructor.prototype,nS=tS===Object.prototype?void 0:tS,rS=mE(mE.bind),oS=function(e,t){return fw(e),void 0===t?e:rS?rS(e,t):function(){return e.apply(t,arguments)}},iS=lE.Object,aS=mE("".split),uS=jE((function(){return!iS("z").propertyIsEnumerable(0)}))?function(e){return"String"==qw(e)?aS(e,""):iS(e)}:iS,sS=Math.ceil,lS=Math.floor,cS=function(e){var t=+e;return t!=t||0===t?0:(t>0?lS:sS)(t)},fS=Math.min,dS=function(e){return e>0?fS(cS(e),9007199254740991):0},pS=function(e){return dS(e.length)},hS=Array.isArray||function(e){return"Array"==qw(e)},vS=function(){},gS=[],yS=BE("Reflect","construct"),mS=/^\s*(?:class|function)\b/,bS=mE(mS.exec),ES=!mS.exec(vS),wS=function(e){if(!NE(e))return!1;try{return yS(vS,gS,e),!0}catch(e){return!1}},SS=!yS||jE((function(){var e;return wS(wS.call)||!wS(Object)||!wS((function(){e=!0}))||e}))?function(e){if(!NE(e))return!1;switch(Zw(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ES||!!bS(mS,Ow(e))}:wS,CS=GE("species"),DS=lE.Array,AS=function(e,t){return new(function(e){var t;return hS(e)&&(t=e.constructor,(SS(t)&&(t===DS||hS(t.prototype))||YE(t)&&null===(t=t[CS]))&&(t=void 0)),void 0===t?DS:t}(e))(0===t?0:t)},OS=mE([].push),xS=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=SE(s),v=uS(h),g=oS(l,c),y=pS(v),m=0,b=f||AS,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:OS(E,d)}else switch(e){case 4:return!1;case 7:OS(E,d)}return i?-1:r||o?o:E}},TS={forEach:xS(0),map:xS(1),filter:xS(2),some:xS(3),every:xS(4),find:xS(5),findIndex:xS(6),filterReject:xS(7)},NS=function(e,t){var n=[][e];return!!n&&jE((function(){n.call(null,t||function(){throw 1},1)}))},kS=TS.forEach,BS=NS("forEach")?[].forEach:function(e){return kS(this,e,arguments.length>1?arguments[1]:void 0)},IS=function(e){if(e&&e.forEach!==BS)try{ww(e,"forEach",BS)}catch(t){e.forEach=BS}};for(var FS in Qw)Qw[FS]&&IS(lE[FS]&&lE[FS].prototype);IS(nS);var PS={}.propertyIsEnumerable,_S=Object.getOwnPropertyDescriptor,RS=_S&&!PS.call({1:2},1)?function(e){var t=_S(this,e);return!!t&&t.enumerable}:PS,LS={f:RS},jS=function(e){return uS(EE(e))},MS=Object.getOwnPropertyDescriptor,zS={f:KE?MS:function(e,t){if(e=jS(e),t=gw(t),QE)try{return MS(e,t)}catch(e){}if(DE(e,t))return Ew(!ow(LS.f,e,t),e[t])}},HS=Math.max,US=Math.min,$S=function(e,t){var n=cS(e);return n<0?HS(n+t,0):US(n,t)},VS=function(e){return function(t,n,r){var o,i=jS(t),a=pS(i),u=$S(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},GS={includes:VS(!0),indexOf:VS(!1)},WS=GS.indexOf,qS=mE([].push),KS=function(e,t){var n,r=jS(e),o=0,i=[];for(n in r)!DE(Bw,n)&&DE(r,n)&&qS(i,n);for(;t.length>o;)DE(r,n=t[o++])&&(~WS(i,n)||qS(i,n));return i},YS=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XS=YS.concat("length","prototype"),ZS={f:Object.getOwnPropertyNames||function(e){return KS(e,XS)}},JS={f:Object.getOwnPropertySymbols},QS=mE([].concat),eC=BE("Reflect","ownKeys")||function(e){var t=ZS.f(nw(e)),n=JS.f;return n?QS(t,n(e)):t},tC=function(e,t){for(var n=eC(t),r=bw.f,o=zS.f,i=0;i<n.length;i++){var a=n[i];DE(e,a)||r(e,a,o(t,a))}},nC=/#|\.prototype\./,rC=function(e,t){var n=iC[oC(e)];return n==uC||n!=aC&&(NE(t)?jE(t):!!t)},oC=rC.normalize=function(e){return String(e).replace(nC,".").toLowerCase()},iC=rC.data={},aC=rC.NATIVE="N",uC=rC.POLYFILL="P",sC=rC,lC=zS.f,cC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?lE:l?lE[u]||fE(u,{}):(lE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=lC(n,r))&&a.value:n[r],!sC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tC(i,o)}(e.sham||o&&o.sham)&&ww(i,"sham",!0),Vw(n,r,i,e)}},fC=Object.keys||function(e){return KS(e,YS)},dC=jE((function(){fC(1)}));
|
|
18
|
+
*/function ry(e,t){const n=/\$/g;let r=[e];if(null==t)return r;for(const e of Object.keys(t))if("_"!==e){let o=t[e];"string"==typeof o&&(o=n[Symbol.replace](o,"$$$$")),r=ny(r,new RegExp(`%\\{${e}\\}`,"g"),o)}return r}var oy=(Xg=ty("apply"),class{constructor(e){Object.defineProperty(this,Xg,{value:iy}),this.locale={strings:{},pluralize:e=>1===e?0:1},Array.isArray(e)?e.forEach(Qg(this,Xg)[Xg],this):Qg(this,Xg)[Xg](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(this.locale.strings,e))throw new Error(`missing string: ${e}`);const n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){return ry(n[this.locale.pluralize(t.smart_count)],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return ry(n,t)}});function iy(e){if(null==e||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var ay=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,u){var s=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,u=i.length;for(;a<u;a++){var s=i[a];if("*"===s&&(n=n.concat(t[s])),2===o.length&&o[0]===s){n=n.concat(t[s]);break}}return n}(e);s.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,s,[n,r,o,i,a,u])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e};var uy={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"};let{urlAlphabet:sy}=uy,ly=e=>crypto.getRandomValues(new Uint8Array(e)),cy=(e,t,n)=>{let r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return()=>{let i="";for(;;){let a=n(o),u=o;for(;u--;)if(i+=e[a[u]&r]||"",i.length===t)return i}}};var fy={nanoid:(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t},customAlphabet:(e,t)=>cy(e,t,ly),customRandom:cy,urlAlphabet:sy,random:ly},dy=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function py(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}py.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var hy=/[\/\+\.]/,vy=function(e,t){function n(t){var n=function(e,t,n){var r=new py(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,hy);return n&&n.length>=2}return t?n(t.split(";")[0]):n};var gy=0;function yy(e){return"__private_"+gy+++"_"+e}var my=yy("publish");class by{constructor(){Object.defineProperty(this,my,{value:Ey}),this.state={},this.callbacks=[]}getState(){return this.state}setState(e){const t={...this.state},n={...this.state,...e};this.state=n,function(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}(this,my)[my](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}}function Ey(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((e=>{e(...t)}))}by.VERSION="2.0.3";var wy=function(e){const t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},Sy={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function Cy(e){let t="";return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,"/")))+t}var Dy=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const n=t[1];let[r,o]=n.split(".");return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)};function Ay(e){return e<10?`0${e}`:e.toString()}var xy=function(){const e=new Date;return`${Ay(e.getHours())}:${Ay(e.getMinutes())}:${Ay(e.getSeconds())}`};var Oy={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${xy()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.debug(`[Uppy] [${xy()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.warn(`[Uppy] [${xy()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error(`[Uppy] [${xy()}]`,...t)}}},Ty={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},Ny=fy;let ky,By;function Iy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Fy=0;function Py(e){return"__private_"+Fy+++"_"+e}const{nanoid:Ry}=Ny,{justErrorsLogger:_y,debugLogger:Ly}=Oy;class jy extends Error{constructor(){super(...arguments),this.isRestriction=!0}}"undefined"==typeof AggregateError&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class My extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var zy=Py("plugins"),Hy=Py("storeUnsubscribe"),Uy=Py("emitter"),$y=Py("preProcessors"),Vy=Py("uploaders"),Gy=Py("postProcessors"),Wy=Py("checkRestrictions"),qy=Py("checkMinNumberOfFiles"),Ky=Py("checkRequiredMetaFieldsOnFile"),Yy=Py("checkRequiredMetaFields"),Xy=Py("showOrLogErrorAndThrow"),Zy=Py("assertNewUploadAllowed"),Jy=Py("checkAndCreateFileStateObject"),Qy=Py("startIfAutoProceed"),em=Py("addListeners"),tm=Py("updateOnlineStatus"),nm=Py("createUpload"),rm=Py("getUpload"),om=Py("removeUpload"),im=Py("runUpload");ky=Symbol.for("uppy test: getPlugins"),By=Symbol.for("uppy test: createUpload");class am{constructor(e){Object.defineProperty(this,im,{value:bm}),Object.defineProperty(this,om,{value:mm}),Object.defineProperty(this,rm,{value:ym}),Object.defineProperty(this,nm,{value:gm}),Object.defineProperty(this,em,{value:vm}),Object.defineProperty(this,Qy,{value:hm}),Object.defineProperty(this,Jy,{value:pm}),Object.defineProperty(this,Zy,{value:dm}),Object.defineProperty(this,Xy,{value:fm}),Object.defineProperty(this,Yy,{value:cm}),Object.defineProperty(this,Ky,{value:lm}),Object.defineProperty(this,qy,{value:sm}),Object.defineProperty(this,Wy,{value:um}),Object.defineProperty(this,zy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Hy,{writable:!0,value:void 0}),Object.defineProperty(this,Uy,{writable:!0,value:ay()}),Object.defineProperty(this,$y,{writable:!0,value:new Set}),Object.defineProperty(this,Vy,{writable:!0,value:new Set}),Object.defineProperty(this,Gy,{writable:!0,value:new Set}),Object.defineProperty(this,tm,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=Ty;const t={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:e=>e,onBeforeUpload:e=>e,store:new by,logger:_y,infoTimeout:5e3};if(this.opts={...t,...e,restrictions:{...t.restrictions,...e&&e.restrictions}},e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=Ly),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=ev(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:Dy(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),Iy(this,Hy)[Hy]=this.store.subscribe(((e,t,n)=>{this.emit("state-update",e,t,n),this.updateAll(t)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),Iy(this,em)[em]()}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Iy(this,Uy)[Uy].emit(e,...n)}on(e,t){return Iy(this,Uy)[Uy].on(e,t),this}once(e,t){return Iy(this,Uy)[Uy].once(e,t),this}off(e,t){return Iy(this,Uy)[Uy].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw new Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){const e=new oy([this.defaultLocale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.locale=e.locale}setOptions(e){this.opts={...this.opts,...e,restrictions:{...this.opts.restrictions,...e&&e.restrictions}},e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((e=>{e.setOptions()})),this.setState()}resetProgress(){const e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t={...this.getState().files},n={};Object.keys(t).forEach((r=>{const o={...t[r]};o.progress={...o.progress,...e},n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(e){Iy(this,$y)[$y].add(e)}removePreProcessor(e){return Iy(this,$y)[$y].delete(e)}addPostProcessor(e){Iy(this,Gy)[Gy].add(e)}removePostProcessor(e){return Iy(this,Gy)[Gy].delete(e)}addUploader(e){Iy(this,Vy)[Vy].add(e)}removeUploader(e){return Iy(this,Vy)[Vy].delete(e)}setMeta(e){const t={...this.getState().meta,...e},n={...this.getState().files};Object.keys(n).forEach((t=>{n[t]={...n[t],meta:{...n[t].meta,...e}}})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})}setFileMeta(e,t){const n={...this.getState().files};if(!n[e])return void this.log("Was trying to set metadata for a file that has been removed: ",e);const r={...n[e].meta,...t};n[e]={...n[e],meta:r},this.setState({files:n})}getFile(e){return this.getState().files[e]}getFiles(){const{files:e}=this.getState();return Object.values(e)}getObjectOfFilesPerState(){const{files:e,totalProgress:t,error:n}=this.getState(),r=Object.values(e),o=r.filter((e=>{let{progress:t}=e;return!t.uploadComplete&&t.uploadStarted})),i=r.filter((e=>!e.progress.uploadStarted)),a=r.filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess)),u=r.filter((e=>e.progress.uploadStarted)),s=r.filter((e=>e.isPaused)),l=r.filter((e=>e.progress.uploadComplete)),c=r.filter((e=>e.error)),f=o.filter((e=>!e.isPaused)),d=r.filter((e=>e.progress.preprocess||e.progress.postprocess));return{newFiles:i,startedFiles:a,uploadStartedFiles:u,pausedFiles:s,completeFiles:l,erroredFiles:c,inProgressFiles:o,inProgressNotPausedFiles:f,processingFiles:d,isUploadStarted:u.length>0,isAllComplete:100===t&&l.length===r.length&&0===d.length,isAllErrored:!!n&&c.length===r.length,isAllPaused:0!==o.length&&s.length===o.length,isUploadInProgress:o.length>0,isSomeGhost:r.some((e=>e.isGhost))}}validateRestrictions(e,t){try{return Iy(this,Wy)[Wy](e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}}checkIfFileAlreadyExists(e){const{files:t}=this.getState();return!(!t[e]||t[e].isGhost)}addFile(e){Iy(this,Zy)[Zy](e);const{files:t}=this.getState();let n=Iy(this,Jy)[Jy](t,e);return t[n.id]&&t[n.id].isGhost&&(n={...t[n.id],data:e.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...t,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),Iy(this,Qy)[Qy](),n.id}addFiles(e){Iy(this,Zy)[Zy]();const t={...this.getState().files},n=[],r=[];for(let o=0;o<e.length;o++)try{let r=Iy(this,Jy)[Jy](t,e[o]);t[r.id]&&t[r.id].isGhost&&(r={...t[r.id],data:e[o].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${r.name}, ${r.id}`)),t[r.id]=r,n.push(r)}catch(e){e.isRestriction||r.push(e)}if(this.setState({files:t}),n.forEach((e=>{this.emit("file-added",e)})),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach((e=>{this.log(`Added file: ${n[e].name}\n id: ${n[e].id}\n type: ${n[e].type}`)})),n.length>0&&Iy(this,Qy)[Qy](),r.length>0){let e="Multiple errors occurred while adding files:\n";if(r.forEach((t=>{e+=`\n * ${t.message}`})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:r.length}),details:e},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(r,e);{const t=new Error(e);throw t.errors=r,t}}}removeFiles(e,t){const{files:n,currentUploads:r}=this.getState(),o={...n},i={...r},a=Object.create(null);function u(e){return void 0===a[e]}e.forEach((e=>{n[e]&&(a[e]=n[e],delete o[e])})),Object.keys(i).forEach((e=>{const t=r[e].fileIDs.filter(u);0!==t.length?i[e]={...r[e],fileIDs:t}:delete i[e]}));const s={currentUploads:i,files:o};0===Object.keys(o).length&&(s.allowNewUpload=!0,s.error=null,s.recoveredState=null),this.setState(s),this.calculateTotalProgress();const l=Object.keys(a);l.forEach((e=>{this.emit("file-removed",a[e],t)})),l.length>5?this.log(`Removed ${l.length} files`):this.log(`Removed files: ${l.join(", ")}`)}removeFile(e,t){void 0===t&&(t=null),this.removeFiles([e],t)}pauseResume(e){if(!this.getState().capabilities.resumableUploads||this.getFile(e).uploadComplete)return;const t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}pauseAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!0};e[t]=n})),this.setState({files:e}),this.emit("pause-all")}resumeAll(){const e={...this.getState().files};Object.keys(e).filter((t=>!e[t].progress.uploadComplete&&e[t].progress.uploadStarted)).forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e}),this.emit("resume-all")}retryAll(){const e={...this.getState().files},t=Object.keys(e).filter((t=>e[t].error));if(t.forEach((t=>{const n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});const n=Iy(this,nm)[nm](t,{forceAllowNewUpload:!0});return Iy(this,im)[im](n)}cancelAll(){this.emit("cancel-all");const{files:e}=this.getState(),t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);const t=Iy(this,nm)[nm]([e],{forceAllowNewUpload:!0});return Iy(this,im)[im](t)}reset(){this.cancelAll()}logout(){this.iteratePlugins((e=>{e.provider&&e.provider.logout&&e.provider.logout()}))}calculateProgress(e,t){if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const e=this.getFiles().filter((e=>e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});const t=e.filter((e=>null!=e.progress.bytesTotal)),n=e.filter((e=>null==e.progress.bytesTotal));if(0===t.length){const t=100*e.length,r=n.reduce(((e,t)=>e+t.progress.percentage),0),o=Math.round(r/t*100);return void this.setState({totalProgress:o})}let r=t.reduce(((e,t)=>e+t.progress.bytesTotal),0);const o=r/t.length;r+=o*n.length;let i=0;t.forEach((e=>{i+=e.progress.bytesUploaded})),n.forEach((e=>{i+=o*(e.progress.percentage||0)/100}));let a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}updateOnlineStatus(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(e,t){if("function"!=typeof e){throw new TypeError(`Expected a plugin class, but got ${null===e?"null":typeof e}. Please verify that the plugin was imported and spelled correctly.`)}const n=new e(this,t),r=n.id;if(!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const o=this.getPlugin(r);if(o){const e=`Already found a plugin named '${o.id}'. Tried to use: '${r}'.\nUppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(e)}return e.VERSION&&this.log(`Using ${r} v${e.VERSION}`),n.type in Iy(this,zy)[zy]?Iy(this,zy)[zy][n.type].push(n):Iy(this,zy)[zy][n.type]=[n],n.install(),this}getPlugin(e){for(const t of Object.values(Iy(this,zy)[zy])){const n=t.find((t=>t.id===e));if(null!=n)return n}}[ky](e){return Iy(this,zy)[zy][e]}iteratePlugins(e){Object.values(Iy(this,zy)[zy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();const t=Iy(this,zy)[zy][e.type],n=t.findIndex((t=>t.id===e.id));-1!==n&&t.splice(n,1);const r={plugins:{...this.getState().plugins,[e.id]:void 0}};this.setState(r)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),Iy(this,Hy)[Hy](),this.iteratePlugins((e=>{this.removePlugin(e)})),"undefined"!=typeof window&&window.removeEventListener&&(window.removeEventListener("online",Iy(this,tm)[tm]),window.removeEventListener("offline",Iy(this,tm)[tm]))}hideInfo(){const{info:e}=this.getState();this.setState({info:e.slice(1)}),this.emit("info-hidden")}info(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);const r="object"==typeof e;this.setState({info:[...this.getState().info,{type:t,message:r?e.message:e,details:r?e.details:null}]}),setTimeout((()=>this.hideInfo()),n),this.emit("info-visible")}log(e,t){const{logger:n}=this.opts;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}}restore(e){return this.log(`Core: attempting to restore upload "${e}"`),this.getState().currentUploads[e]?Iy(this,im)[im](e):(Iy(this,om)[om](e),Promise.reject(new Error("Nonexistent upload")))}[By](){return Iy(this,nm)[nm](...arguments)}addResultData(e,t){if(!Iy(this,rm)[rm](e))return void this.log(`Not setting result for an upload that has been removed: ${e}`);const{currentUploads:n}=this.getState(),r={...n[e],result:{...n[e].result,...t}};this.setState({currentUploads:{...n,[e]:r}})}upload(){var e;null!=(e=Iy(this,zy)[zy].uploader)&&e.length||this.log("No uploader type plugins are used","warning");let{files:t}=this.getState();const n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((()=>{Iy(this,qy)[qy](t),Iy(this,Yy)[Yy](t)})).catch((e=>{Iy(this,Xy)[Xy](e)})).then((()=>{const{currentUploads:e}=this.getState(),n=Object.values(e).flatMap((e=>e.fileIDs)),r=[];Object.keys(t).forEach((e=>{const t=this.getFile(e);t.progress.uploadStarted||-1!==n.indexOf(e)||r.push(t.id)}));const o=Iy(this,nm)[nm](r);return Iy(this,im)[im](o)})).catch((e=>{Iy(this,Xy)[Xy](e,{showInformer:!1})})))}}function um(e,t){void 0===t&&(t=this.getFiles());const{maxFileSize:n,minFileSize:r,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new jy(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a){if(!a.some((t=>t.indexOf("/")>-1?!!e.type&&vy(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){const e=a.join(", ");throw new jy(this.i18n("youCanOnlyUploadFileTypes",{types:e}))}}if(o&&null!=e.size){let n=0;if(n+=e.size,t.forEach((e=>{n+=e.size})),n>o)throw new jy(this.i18n("exceedsSize",{size:dy(o),file:e.name}))}if(n&&null!=e.size&&e.size>n)throw new jy(this.i18n("exceedsSize",{size:dy(n),file:e.name}));if(r&&null!=e.size&&e.size<r)throw new jy(this.i18n("inferiorSize",{size:dy(r)}))}function sm(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new jy(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function lm(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:n}=Object.prototype,r=[],o=[];for(let i=0;i<t.length;i++)if(!n.call(e.meta,t[i])||""===e.meta[t[i]]){const n=new jy(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);r.push(n),o.push(t[i]),Iy(this,Xy)[Xy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),r}function cm(e){const t=Object.keys(e).flatMap((e=>{const t=this.getFile(e);return Iy(this,Ky)[Ky](t)}));if(t.length)throw new My(t,`${this.i18n("missingRequiredMetaField")}`)}function fm(e,t){let{showInformer:n=!0,file:r=null,throwErr:o=!0}=void 0===t?{}:t;const i="object"==typeof e?e.message:e,a="object"==typeof e&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",r,e)):this.log(u,"error"),n&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw"object"==typeof e?e:new Error(e)}function dm(e){const{allowNewUpload:t}=this.getState();!1===t&&Iy(this,Xy)[Xy](new jy(this.i18n("noMoreFilesAllowed")),{file:e})}function pm(e,t){const n=function(e){var t;if(e.type)return e.type;const n=e.name?null==(t=wy(e.name).extension)?void 0:t.toLowerCase():null;return n&&n in Sy?Sy[n]:"application/octet-stream"}(t),r=function(e,t){return t.name?t.name:"image"===e.split("/")[0]?`${e.split("/")[0]}.${e.split("/")[1]}`:"noname"}(n,t),o=wy(r).extension,i=Boolean(t.isRemote),a=function(e){let t="uppy";return"string"==typeof e.name&&(t+=`-${Cy(e.name.toLowerCase())}`),void 0!==e.type&&(t+=`-${e.type}`),e.meta&&"string"==typeof e.meta.relativePath&&(t+=`-${Cy(e.meta.relativePath.toLowerCase())}`),void 0!==e.data.size&&(t+=`-${e.data.size}`),void 0!==e.data.lastModified&&(t+=`-${e.data.lastModified}`),t}({...t,type:n});if(this.checkIfFileAlreadyExists(a)){const e=new jy(this.i18n("noDuplicates",{fileName:r}));Iy(this,Xy)[Xy](e,{file:t})}const u=t.meta||{};u.name=r,u.type=n;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:r,extension:o||"",meta:{...this.getState().meta,...u},type:n,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);!1===c?Iy(this,Xy)[Xy](new jy("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):"object"==typeof c&&null!==c&&(l=c);try{const t=Object.keys(e).map((t=>e[t]));Iy(this,Wy)[Wy](l,t)}catch(e){Iy(this,Xy)[Xy](e,{file:l})}return l}function hm(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((()=>{this.scheduledAutoProceed=null,this.upload().catch((e=>{e.isRestriction||this.log(e.stack||e.message||e)}))}),4))}function vm(){const e=(e,t,n)=>{let r=e.message||"Unknown error";e.details&&(r+=` ${e.details}`),this.setState({error:r}),null!=t&&t.id in this.getState().files&&this.setFileState(t.id,{error:r,response:n})};this.on("error",e),this.on("upload-error",((t,n,r)=>{if(e(n,t,r),"object"==typeof n&&n.message){const e=new Error(n.message);e.details=n.message,n.details&&(e.details+=` ${n.details}`),e.message=this.i18n("failedToUpload",{file:t.name}),Iy(this,Xy)[Xy](e,{throwErr:!1})}else Iy(this,Xy)[Xy](n,{throwErr:!1})})),this.on("upload",(()=>{this.setState({error:null})})),this.on("upload-started",(e=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:e.size}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",((e,t)=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const n=this.getFile(e.id).progress;this.setFileState(e.id,{progress:{...n,postprocess:Iy(this,Gy)[Gy].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:t,uploadURL:t.uploadURL,isPaused:!1}),null==e.size&&this.setFileState(e.id,{size:t.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()})),this.on("preprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getFile(e.id).progress,preprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("preprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.preprocess,this.setState({files:t})})),this.on("postprocess-progress",((e,t)=>{this.getFile(e.id)?this.setFileState(e.id,{progress:{...this.getState().files[e.id].progress,postprocess:t}}):this.log(`Not setting progress for a file that has been removed: ${e.id}`)})),this.on("postprocess-complete",(e=>{if(!this.getFile(e.id))return void this.log(`Not setting progress for a file that has been removed: ${e.id}`);const t={...this.getState().files};t[e.id]={...t[e.id],progress:{...t[e.id].progress}},delete t[e.id].progress.postprocess,this.setState({files:t})})),this.on("restored",(()=>{this.calculateTotalProgress()})),this.on("dashboard:file-edit-complete",(e=>{e&&Iy(this,Ky)[Ky](e)})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",Iy(this,tm)[tm]),window.addEventListener("offline",Iy(this,tm)[tm]),setTimeout(Iy(this,tm)[tm],3e3))}function gm(e,t){void 0===t&&(t={});const{forceAllowNewUpload:n=!1}=t,{allowNewUpload:r,currentUploads:o}=this.getState();if(!r&&!n)throw new Error("Cannot create a new upload: already uploading.");const i=Ry();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploadBatches&&!1!==this.opts.allowMultipleUploads,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function ym(e){const{currentUploads:t}=this.getState();return t[e]}function mm(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function bm(e){let{currentUploads:t}=this.getState(),n=t[e];const r=n.step||0,o=[...Iy(this,$y)[$y],...Iy(this,Vy)[Vy],...Iy(this,Gy)[Gy]];try{for(let i=r;i<o.length&&n;i++){const r=o[i],a={...n,step:i};this.setState({currentUploads:{...t,[e]:a}}),await r(a.fileIDs,e),t=this.getState().currentUploads,n=t[e]}}catch(t){throw this.emit("error",t),Iy(this,om)[om](e),t}if(n){n.fileIDs.forEach((e=>{const t=this.getFile(e);t&&t.progress.postprocess&&this.emit("postprocess-complete",t)}));const r=n.fileIDs.map((e=>this.getFile(e))),o=r.filter((e=>!e.error)),i=r.filter((e=>e.error));await this.addResultData(e,{successful:o,failed:i,uploadID:e}),t=this.getState().currentUploads,n=t[e]}let i;return n&&(i=n.result,this.emit("complete",i),Iy(this,om)[om](e)),null==i&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}am.VERSION="2.1.3";var Em=am,wm=n((function(e,t){var n,r,o,i,a,u,s,l,c={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,r){var o,i,a,u={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];if(arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return g(e,u,o,i,null)}function g(e,t,n,i,a){var u={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(u),u}function y(e){return e.children}function m(e,t){this.props=e,this.context=t}function b(e,t){if(null==t)return e.__?b(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?b(e):null}function E(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return E(e)}}function w(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||u)(S)}function S(){for(var e;S.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,k(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?b(o):i,o.__h),B(n,o),o.__e!=i&&E(o)))}))}function C(e,t,n,r,o,i,a,u,s,l){var d,p,h,v,m,E,w,S=r&&r.__k||f,C=S.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?g(null,v,null,null,v):Array.isArray(v)?g(y,{children:v},null,null,null):v.__b>0?g(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(h=S[d])||h&&v.key==h.key&&v.type===h.type)S[d]=void 0;else for(p=0;p<C;p++){if((h=S[p])&&v.key==h.key&&v.type===h.type){S[p]=void 0;break}h=null}k(e,v,h=h||c,o,i,a,u,s,l),m=v.__e,(p=v.ref)&&h.ref!=p&&(w||(w=[]),h.ref&&w.push(h.ref,null,v),w.push(p,v.__c||m,v)),null!=m?(null==E&&(E=m),"function"==typeof v.type&&v.__k===h.__k?v.__d=s=D(v,s,e):s=A(e,v,h,S,m,s),"function"==typeof n.type&&(n.__d=s)):s&&h.__e==s&&s.parentNode!=e&&(s=b(h))}for(n.__e=E,d=C;d--;)null!=S[d]&&("function"==typeof n.type&&null!=S[d].__e&&S[d].__e==n.__d&&(n.__d=b(r,d+1)),P(S[d],S[d]));if(w)for(d=0;d<w.length;d++)F(w[d],w[++d],w[++d])}function D(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?D(r,t,n):A(n,r,r,o,r.__e,t));return t}function A(e,t,n,r,o,i){var a,u,s;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(u=i,s=0;(u=u.nextSibling)&&s<r.length;s+=2)if(u==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function x(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||d.test(t)?n:n+"px"}function O(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||x(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||x(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?N:T,i):e.removeEventListener(t,i?N:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](r.event?r.event(e):e)}function N(e){this.l[e.type+!0](r.event?r.event(e):e)}function k(e,t,n,o,i,a,u,s,l){var c,f,d,h,v,g,b,E,w,S,D,A=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,s=t.__e=n.__e,t.__h=null,a=[s]),(c=r.__b)&&c(t);try{e:if("function"==typeof A){if(E=t.props,w=(c=A.contextType)&&o[c.__c],S=c?w?w.props.value:c.__:o,n.__c?b=(f=t.__c=n.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(E,S):(t.__c=f=new m(E,S),f.constructor=A,f.render=R),w&&w.sub(f),f.props=E,f.state||(f.state={}),f.context=S,f.__n=o,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,A.getDerivedStateFromProps(E,f.__s))),h=f.props,v=f.state,d)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&E!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(E,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(E,f.__s,S)||t.__v===n.__v){f.props=E,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(E,f.__s,S),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,v,g)}))}f.context=S,f.props=E,f.state=f.__s,(c=r.__r)&&c(t),f.__d=!1,f.__v=t,f.__P=e,c=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=p(p({},o),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(h,v)),D=null!=c&&c.type===y&&null==c.key?c.props.children:c,C(e,Array.isArray(D)?D:[D],t,n,o,i,a,u,s,l),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),b&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=I(n.__e,t,n,o,i,a,u,l);(c=r.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=s,t.__h=!!l,a[a.indexOf(s)]=null),r.__e(e,t,n)}}function B(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function I(e,t,r,o,i,a,u,s){var l,f,d,p=r.props,v=t.props,g=t.type,y=0;if("svg"===g&&(i=!0),null!=a)for(;y<a.length;y++)if((l=a[y])&&"setAttribute"in l==!!g&&(g?l.localName===g:3===l.nodeType)){e=l,a[y]=null;break}if(null==e){if(null===g)return document.createTextNode(v);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,v.is&&v),a=null,s=!1}if(null===g)p===v||s&&e.data===v||(e.data=v);else{if(a=a&&n.call(e.childNodes),f=(p=r.props||c).dangerouslySetInnerHTML,d=v.dangerouslySetInnerHTML,!s){if(null!=a)for(p={},y=0;y<e.attributes.length;y++)p[e.attributes[y].name]=e.attributes[y].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||O(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||O(e,i,t[i],n[i],r)}(e,v,p,i,s),d)t.__k=[];else if(y=t.props.children,C(e,Array.isArray(y)?y:[y],t,r,o,i&&"foreignObject"!==g,a,u,a?a[0]:r.__k&&b(r,0),s),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);s||("value"in v&&void 0!==(y=v.value)&&(y!==p.value||y!==e.value||"progress"===g&&!y)&&O(e,"value",y,p.value,!1),"checked"in v&&void 0!==(y=v.checked)&&y!==e.checked&&O(e,"checked",y,p.checked,!1))}return e}function F(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var o,i;if(r.unmount&&r.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||F(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){r.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&P(o[i],t,"function"!=typeof e.type);n||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function R(e,t,n){return this.constructor(e,n)}function _(e,t,o){var i,a,u;r.__&&r.__(e,t),a=(i="function"==typeof o)?null:o&&o.__k||t.__k,u=[],k(t,e=(!i&&o||t).__k=v(y,null,[e]),a||c,c,void 0!==t.ownerSVGElement,!i&&o?[o]:a?null:t.firstChild?n.call(t.childNodes):null,u,!i&&o?o:a?a.__e:t.firstChild,i),B(u,e)}n=f.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,i=function(e){return null!=e&&void 0===e.constructor},m.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},m.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},m.prototype.render=y,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S.__r=0,l=0,t.Component=m,t.Fragment=y,t.cloneElement=function(e,t,r){var o,i,a,u=p({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),g(e.type,u,o||e.key,i||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=v,t.createRef=function(){return{current:null}},t.h=v,t.hydrate=function e(t,n){_(t,n,e)},t.isValidElement=i,t.options=r,t.render=_,t.toChildArray=function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){e(t,n)})):n.push(t)),n}})),Sm=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(null==(n=e)?void 0:n.nodeType)===Node.ELEMENT_NODE?e:null;var n},Cm=class{constructor(e,t){void 0===t&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new oy([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function Dm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Am=0;function xm(e){return"__private_"+Am+++"_"+e}const{render:Om}=wm;var Tm=xm("updateUI");class Nm extends Cm{constructor(){super(...arguments),Object.defineProperty(this,Tm,{writable:!0,value:void 0})}mount(e,t){const n=t.id,r=Sm(e);if(r){this.isTargetDOMEl=!0;const t=document.createDocumentFragment();return Dm(this,Tm)[Tm]=function(e){let t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((()=>(t=null,e(...n))))),t}}((e=>{this.uppy.getPlugin(this.id)&&(Om(this.render(e),t),this.afterUpdate())})),this.uppy.log(`Installing ${n} to a DOM element '${e}'`),this.opts.replaceTargetContent&&(r.innerHTML=""),Om(this.render(this.uppy.getState()),t),this.el=t.firstElementChild,r.appendChild(t),this.onMount(),this.el}let o;if("object"==typeof e&&e instanceof Nm)o=e;else if("function"==typeof e){const t=e;this.uppy.iteratePlugins((e=>{if(e instanceof t)return o=e,!1}))}if(o)return this.uppy.log(`Installing ${n} to ${o.id}`),this.parent=o,this.el=o.addTarget(t),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let i=`Invalid target option given to ${n}.`;throw i+="function"==typeof e?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(i)}update(e){var t,n;null!=this.el&&(null==(t=(n=Dm(this,Tm))[Tm])||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&(null==(e=this.el)||e.remove());this.onUnmount()}onMount(){}onUnmount(){}}var km=Nm;const{debugLogger:Bm}=Oy;var Im=Em,Fm=Em,Pm=km,Rm=Cm,_m=Bm;Im.Uppy=Fm,Im.UIPlugin=Pm,Im.BasePlugin=Rm,Im.debugLogger=_m;class Lm extends Error{constructor(e,t){void 0===t&&(t=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=e,this.isNetworkError=!0,this.request=t}}var jm=Lm,Mm=function(){return fetch(...arguments).catch((e=>{throw"AbortError"===e.name?e:new jm(e)}))};class zm extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Hm,Um,$m,Vm,Gm,Wm=zm;function qm(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Km=0;function Ym(e){return"__private_"+Km+++"_"+e}async function Xm(e){if(401===e.status)throw new Wm;const t=e.json();if(e.status<200||e.status>300){let n=`Failed request with status: ${e.status}. ${e.statusText}`;try{const e=await t;n=e.message?`${n} message: ${e.message}`:n,n=e.requestId?`${n} request-Id: ${e.requestId}`:n}finally{throw new Error(n)}}return t}var Zm=(Um=Ym("getPostResponseFunc"),$m=Ym("getUrl"),Vm=Ym("errorHandler"),Gm=Hm=class e{constructor(e,t){Object.defineProperty(this,Vm,{value:Qm}),Object.defineProperty(this,$m,{value:Jm}),Object.defineProperty(this,Um,{writable:!0,value:e=>t=>e?t:this.onReceiveResponse(t)}),this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:e}=this.uppy.getState(),t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...e.defaultHeaders,...t})}onReceiveResponse(e){const t=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:r}=e;return r.has("i-am")&&r.get("i-am")!==t[n]&&this.uppy.setState({companion:{...t,[n]:r.get("i-am")}}),e}preflight(e){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(qm(this,$m)[$m](e),{method:"OPTIONS"}).then((e=>(e.headers.has("access-control-allow-headers")&&(this.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((e=>e.trim().toLowerCase()))),this.preflightDone=!0,this.allowedHeaders.slice()))).catch((e=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${e}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice())))}preflightAndHeaders(e){return Promise.all([this.preflight(e),this.headers()]).then((e=>{let[t,n]=e;return Object.keys(n).forEach((e=>{t.includes(e.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${e}`),delete n[e])})),n}))}get(e,t){return this.preflightAndHeaders(e).then((t=>Mm(qm(this,$m)[$m](e),{method:"get",headers:t,credentials:this.opts.companionCookiesRule||"same-origin"}))).then(qm(this,Um)[Um](t)).then(Xm).catch(qm(this,Vm)[Vm]("get",e))}post(e,t,n){const r="post";return this.preflightAndHeaders(e).then((n=>Mm(qm(this,$m)[$m](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}delete(e,t,n){const r="delete";return this.preflightAndHeaders(e).then((n=>Mm(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null}))).then(qm(this,Um)[Um](n)).then(Xm).catch(qm(this,Vm)[Vm](r,e))}},Hm.VERSION="2.0.4",Hm.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Hm.VERSION}`},Gm);function Jm(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Qm(e,t){return n=>{var r;if(null==(r=n)||!r.isAuthError){const r=new Error(`Could not ${e} ${qm(this,$m)[$m](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var eb={setItem:(e,t)=>new Promise((n=>{localStorage.setItem(e,t),n()})),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise((t=>{localStorage.removeItem(e),t()}))};var tb,nb,rb,ob,ib;let ab,ub;function sb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var lb=0;function cb(e){return"__private_"+lb+++"_"+e}var fb=(tb=cb("queued"),nb=cb("emitter"),rb=cb("isOpen"),ob=cb("socket"),ib=cb("handleMessage"),ab=Symbol.for("uppy test: getSocket"),ub=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,tb,{writable:!0,value:[]}),Object.defineProperty(this,nb,{writable:!0,value:ay()}),Object.defineProperty(this,rb,{writable:!0,value:!1}),Object.defineProperty(this,ob,{writable:!0,value:void 0}),Object.defineProperty(this,ib,{writable:!0,value:e=>{try{const t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}}}),this.opts=e,e&&!1===e.autoOpen||this.open()}get isOpen(){return sb(this,rb)[rb]}[ab](){return sb(this,ob)[ob]}[ub](){return sb(this,tb)[tb]}open(){sb(this,ob)[ob]=new WebSocket(this.opts.target),sb(this,ob)[ob].onopen=()=>{for(sb(this,rb)[rb]=!0;sb(this,tb)[tb].length>0&&sb(this,rb)[rb];){const e=sb(this,tb)[tb].shift();this.send(e.action,e.payload)}},sb(this,ob)[ob].onclose=()=>{sb(this,rb)[rb]=!1},sb(this,ob)[ob].onmessage=sb(this,ib)[ib]}close(){var e;null==(e=sb(this,ob)[ob])||e.close()}send(e,t){sb(this,rb)[rb]?sb(this,ob)[ob].send(JSON.stringify({action:e,payload:t})):sb(this,tb)[tb].push({action:e,payload:t})}on(e,t){sb(this,nb)[nb].on(e,t)}emit(e,t){sb(this,nb)[nb].emit(e,t)}once(e,t){sb(this,nb)[nb].once(e,t)}}),db={RequestClient:Zm,Provider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then((e=>{let[t,n]=e;const r={};return n&&(r["uppy-auth-token"]=n),this.companionKeysParams&&(r["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...r}}))}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),n=t.getPluginState().authenticated?401!==e.status:e.status<400;return t.setPluginState({authenticated:n}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then((e=>{this.preAuthToken=e.token})).catch((e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")})):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then((e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)]))).then((e=>{let[t]=e;return t}))}static initPlugin(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts={...n,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!("string"==typeof n||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||eb}},SearchProvider:class extends Zm{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "))(this.id),this.pluginId=this.opts.pluginId}fileUrl(e){return`${this.hostname}/search/${this.id}/get/${e}`}search(e,t){return t=t?`&${t}`:"",this.get(`search/${this.id}/list?q=${encodeURIComponent(e)}${t}`)}},Socket:fb};var pb,hb,vb=ev((function(e,t,n){const{progress:r,bytesUploaded:o,bytesTotal:i}=t;r&&(e.uppy.log(`Upload progress: ${r}`),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0});function gb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var yb=0;function mb(e){return"__private_"+yb+++"_"+e}var bb=(pb=mb("emitter"),hb=mb("events"),class{constructor(e){Object.defineProperty(this,pb,{writable:!0,value:void 0}),Object.defineProperty(this,hb,{writable:!0,value:[]}),gb(this,pb)[pb]=e}on(e,t){return gb(this,hb)[hb].push([e,t]),gb(this,pb)[pb].on(e,t)}remove(){for(const[e,t]of gb(this,hb)[hb].splice(0))gb(this,pb)[pb].off(e,t)}});function Eb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var wb=0;function Sb(e){return"__private_"+wb+++"_"+e}var Cb=Sb("aliveTimer"),Db=Sb("isDone"),Ab=Sb("onTimedOut"),xb=Sb("timeout");var Ob=class{constructor(e,t){Object.defineProperty(this,Cb,{writable:!0,value:void 0}),Object.defineProperty(this,Db,{writable:!0,value:!1}),Object.defineProperty(this,Ab,{writable:!0,value:void 0}),Object.defineProperty(this,xb,{writable:!0,value:void 0}),Eb(this,xb)[xb]=e,Eb(this,Ab)[Ab]=t}progress(){Eb(this,Db)[Db]||Eb(this,xb)[xb]>0&&(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=setTimeout(Eb(this,Ab)[Ab],Eb(this,xb)[xb]))}done(){Eb(this,Db)[Db]||(clearTimeout(Eb(this,Cb)[Cb]),Eb(this,Cb)[Cb]=null,Eb(this,Db)[Db]=!0)}};function Tb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var Nb=0;function kb(e){return"__private_"+Nb+++"_"+e}function Bb(){return new Error("Cancelled")}var Ib=kb("activeRequests"),Fb=kb("queuedHandlers"),Pb=kb("call"),Rb=kb("queueNext"),_b=kb("next"),Lb=kb("queue"),jb=kb("dequeue");function Mb(e){Tb(this,Ib)[Ib]+=1;let t,n=!1;try{t=e()}catch(e){throw Tb(this,Ib)[Ib]-=1,e}return{abort:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,t(),Tb(this,Rb)[Rb]())},done:()=>{n||(n=!0,Tb(this,Ib)[Ib]-=1,Tb(this,Rb)[Rb]())}}}function zb(){queueMicrotask((()=>Tb(this,_b)[_b]()))}function Hb(){if(Tb(this,Ib)[Ib]>=this.limit)return;if(0===Tb(this,Fb)[Fb].length)return;const e=Tb(this,Fb)[Fb].shift(),t=Tb(this,Pb)[Pb](e.fn);e.abort=t.abort,e.done=t.done}function Ub(e,t){void 0===t&&(t={});const n={fn:e,priority:t.priority||0,abort:()=>{Tb(this,jb)[jb](n)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},r=Tb(this,Fb)[Fb].findIndex((e=>n.priority>e.priority));return-1===r?Tb(this,Fb)[Fb].push(n):Tb(this,Fb)[Fb].splice(r,0,n),n}function $b(e){const t=Tb(this,Fb)[Fb].indexOf(e);-1!==t&&Tb(this,Fb)[Fb].splice(t,1)}var Vb={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jb,{value:$b}),Object.defineProperty(this,Lb,{value:Ub}),Object.defineProperty(this,_b,{value:Hb}),Object.defineProperty(this,Rb,{value:zb}),Object.defineProperty(this,Pb,{value:Mb}),Object.defineProperty(this,Ib,{writable:!0,value:0}),Object.defineProperty(this,Fb,{writable:!0,value:[]}),this.limit="number"!=typeof e||0===e?1/0:e}run(e,t){return Tb(this,Ib)[Ib]<this.limit?Tb(this,Pb)[Pb](e):Tb(this,Lb)[Lb](e,t)}wrapPromiseFunction(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];let a;const u=new Promise(((r,i)=>{a=n.run((()=>{let t,n;try{n=Promise.resolve(e(...o))}catch(e){n=Promise.reject(e)}return n.then((e=>{t?i(t):(a.done(),r(e))}),(e=>{t?i(t):(a.done(),i(e))})),()=>{t=Bb()}}),t)}));return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")};var Gb,Wb,qb=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)},Kb={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:Yb}=Ny,{Provider:Xb,RequestClient:Zb,Socket:Jb}=db,{RateLimitedQueue:Qb,internalRateLimitedQueue:eE}=Vb;function tE(e,t){let n=t;return n||(n=new Error("Upload error")),"string"==typeof n&&(n=new Error(n)),n instanceof Error||(n=Object.assign(new Error("Upload error"),{data:n})),qb(e)?(n=new jm(n,e),n):(n.request=e,n)}function nE(e){return e.data.slice(0,e.data.size,e.meta.type)}var rE=(Wb=Gb=class extends Cm{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=Kb;const n={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=new Error("Upload error");return qb(t)&&(n=new jm(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),eE in this.opts?this.requests=this.opts[eE]:this.requests=new Qb(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:n}=this.opts,r={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return"function"==typeof n?r.headers=n(e):Object.assign(r.headers,this.opts.headers),t&&Object.assign(r.headers,t.headers),e.xhrUpload&&Object.assign(r.headers,e.xhrUpload.headers),r}addMetadata(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((n=>{e.append(n,t[n])}))}createFormDataUpload(e,t){const n=new FormData;this.addMetadata(n,e.meta,t);const r=nE(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n}createBundledUpload(e,t){const n=new FormData,{meta:r}=this.uppy.getState();return this.addMetadata(n,r,t),e.forEach((e=>{const t=this.getOptions(e),r=nE(e);e.name?n.append(t.fieldName,r,e.name):n.append(t.fieldName,r)})),n}upload(e,t,n){const r=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${n}`),new Promise(((t,n)=>{this.uppy.emit("upload-started",e);const o=r.formData?this.createFormDataUpload(e,r):e.data,i=new XMLHttpRequest;this.uploaderEvents[e.id]=new bb(this.uppy);const a=new Ob(r.timeout,(()=>{i.abort(),s.done();const t=new Error(this.i18n("timedOut",{seconds:Math.ceil(r.timeout/1e3)}));this.uppy.emit("upload-error",e,t),n(t)})),u=Yb();i.upload.addEventListener("loadstart",(()=>{this.uppy.log(`[XHRUpload] ${u} started`)})),i.upload.addEventListener("progress",(t=>{this.uppy.log(`[XHRUpload] ${u} progress: ${t.loaded} / ${t.total}`),a.progress(),t.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded,bytesTotal:t.total})})),i.addEventListener("load",(o=>{if(this.uppy.log(`[XHRUpload] ${u} finished`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r.validateStatus(o.target.status,i.responseText,i)){const n=r.getResponseData(i.responseText,i),a=n[r.responseUrlFieldName],u={status:o.target.status,body:n,uploadURL:a};return this.uppy.emit("upload-success",e,u),a&&this.uppy.log(`Download ${e.name} from ${a}`),t(e)}const l=r.getResponseData(i.responseText,i),c=tE(i,r.getResponseError(i.responseText,i)),f={status:o.target.status,body:l};return this.uppy.emit("upload-error",e,c,f),n(c)})),i.addEventListener("error",(()=>{this.uppy.log(`[XHRUpload] ${u} errored`),a.done(),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const t=tE(i,r.getResponseError(i.responseText,i));return this.uppy.emit("upload-error",e,t),n(t)})),i.open(r.method.toUpperCase(),r.endpoint,!0),i.withCredentials=r.withCredentials,""!==r.responseType&&(i.responseType=r.responseType);const s=this.requests.run((()=>{this.uppy.emit("upload-started",e);const t=this.getOptions(e);return Object.keys(t.headers).forEach((e=>{i.setRequestHeader(e,t.headers[e])})),i.send(o),()=>{a.done(),i.abort()}}));this.onFileRemove(e.id,(()=>{s.abort(),n(new Error("File removed"))})),this.onCancelAll(e.id,(()=>{s.abort(),n(new Error("Upload cancelled"))}))}))}uploadRemote(e){const t=this.getOptions(e);return new Promise(((n,r)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach((t=>{o[t]=e.meta[t]}));new(e.remote.providerOptions.provider?Xb:Zb)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then((o=>{const{token:i}=o,a=function(e){const t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return`${/^http:\/\//i.test(e)?"ws":"wss"}://${t}`}(e.remote.companionUrl),u=new Jb({target:`${a}/api/${i}`,autoOpen:!1});this.uploaderEvents[e.id]=new bb(this.uppy),this.onFileRemove(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was removed`)})),this.onCancelAll(e.id,(()=>{u.send("cancel",{}),s.abort(),n(`upload ${e.id} was canceled`)})),this.onRetry(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),this.onRetryAll(e.id,(()=>{u.send("pause",{}),u.send("resume",{})})),u.on("progress",(t=>vb(this,t,e))),u.on("success",(r=>{const o=t.getResponseData(r.response.responseText,r.response),i=o[t.responseUrlFieldName],a={status:r.response.status,body:o,uploadURL:i};return this.uppy.emit("upload-success",e,a),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n()})),u.on("error",(n=>{const o=n.response,i=o?t.getResponseError(o.responseText,o):Object.assign(new Error(n.error.message),{cause:n.error});this.uppy.emit("upload-error",e,i),s.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r(i)}));const s=this.requests.run((()=>(u.open(),e.isPaused&&u.send("pause",{}),()=>u.close())))})).catch((t=>{this.uppy.emit("upload-error",e,t),r(t)}))}))}uploadBundle(e){return new Promise(((t,n)=>{const{endpoint:r}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new Ob(this.opts.timeout,(()=>{u.abort();const e=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(e),n(e)})),l=t=>{e.forEach((e=>{this.uppy.emit("upload-error",e,t)}))};u.upload.addEventListener("loadstart",(()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()})),u.upload.addEventListener("progress",(t=>{s.progress(),t.lengthComputable&&e.forEach((e=>{this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:t.loaded/t.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(r=>{if(s.done(),this.opts.validateStatus(r.target.status,u.responseText,u)){const n=this.opts.getResponseData(u.responseText,u),o={status:r.target.status,body:n};return e.forEach((e=>{this.uppy.emit("upload-success",e,o)})),t()}const o=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return o.request=u,l(o),n(o)})),u.addEventListener("error",(()=>{s.done();const e=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(e),n(e)})),this.uppy.on("cancel-all",(()=>{s.done(),u.abort()})),u.open(o.toUpperCase(),r,!0),u.withCredentials=this.opts.withCredentials,""!==this.opts.responseType&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach((e=>{u.setRequestHeader(e,this.opts.headers[e])})),u.send(a),e.forEach((e=>{this.uppy.emit("upload-started",e)}))}))}uploadFiles(e){const t=e.map(((t,n)=>{const r=parseInt(n,10)+1,o=e.length;return t.error?Promise.reject(new Error(t.error)):t.isRemote?this.uploadRemote(t,r,o):this.upload(t,r,o)}));return function(e){const t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((e=>e.then(r,o)))).then((()=>({successful:t,failed:n})))}(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",(n=>{e===n.id&&t(n.id)}))}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",(n=>{e===n&&t()}))}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",(()=>{this.uppy.getFile(e)&&t()}))}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",(()=>{this.uppy.getFile(e)&&t()}))}handleUpload(e){if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts[eE]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Gb.VERSION="2.0.6",Wb),oE="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iE(e){var t={exports:{}};return e(t,t.exports),t.exports}var aE,uE,sE=function(e){return e&&e.Math==Math&&e},lE=sE("object"==typeof globalThis&&globalThis)||sE("object"==typeof window&&window)||sE("object"==typeof self&&self)||sE("object"==typeof oE&&oE)||function(){return this}()||Function("return this")(),cE=Object.defineProperty,fE=function(e,t){try{cE(lE,e,{value:t,configurable:!0,writable:!0})}catch(n){lE[e]=t}return t},dE=lE["__core-js_shared__"]||fE("__core-js_shared__",{}),pE=iE((function(e){(e.exports=function(e,t){return dE[e]||(dE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),hE=Function.prototype,vE=hE.bind,gE=hE.call,yE=vE&&vE.bind(gE),mE=vE?function(e){return e&&yE(gE,e)}:function(e){return e&&function(){return gE.apply(e,arguments)}},bE=lE.TypeError,EE=function(e){if(null==e)throw bE("Can't call method on "+e);return e},wE=lE.Object,SE=function(e){return wE(EE(e))},CE=mE({}.hasOwnProperty),DE=Object.hasOwn||function(e,t){return CE(SE(e),t)},AE=0,xE=Math.random(),OE=mE(1..toString),TE=function(e){return"Symbol("+(void 0===e?"":e)+")_"+OE(++AE+xE,36)},NE=function(e){return"function"==typeof e},kE=function(e){return NE(e)?e:void 0},BE=function(e,t){return arguments.length<2?kE(lE[e]):lE[e]&&lE[e][t]},IE=BE("navigator","userAgent")||"",FE=lE.process,PE=lE.Deno,RE=FE&&FE.versions||PE&&PE.version,_E=RE&&RE.v8;_E&&(uE=(aE=_E.split("."))[0]>0&&aE[0]<4?1:+(aE[0]+aE[1])),!uE&&IE&&(!(aE=IE.match(/Edge\/(\d+)/))||aE[1]>=74)&&(aE=IE.match(/Chrome\/(\d+)/))&&(uE=+aE[1]);var LE=uE,jE=function(e){try{return!!e()}catch(e){return!0}},ME=!!Object.getOwnPropertySymbols&&!jE((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&LE&&LE<41})),zE=ME&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,HE=pE("wks"),UE=lE.Symbol,$E=UE&&UE.for,VE=zE?UE:UE&&UE.withoutSetter||TE,GE=function(e){if(!DE(HE,e)||!ME&&"string"!=typeof HE[e]){var t="Symbol."+e;ME&&DE(UE,e)?HE[e]=UE[e]:HE[e]=zE&&$E?$E(t):VE(t)}return HE[e]},WE={};WE[GE("toStringTag")]="z";var qE="[object z]"===String(WE),KE=!jE((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),YE=function(e){return"object"==typeof e?null!==e:NE(e)},XE=lE.document,ZE=YE(XE)&&YE(XE.createElement),JE=function(e){return ZE?XE.createElement(e):{}},QE=!KE&&!jE((function(){return 7!=Object.defineProperty(JE("div"),"a",{get:function(){return 7}}).a})),ew=lE.String,tw=lE.TypeError,nw=function(e){if(YE(e))return e;throw tw(ew(e)+" is not an object")},rw=Function.prototype.call,ow=rw.bind?rw.bind(rw):function(){return rw.apply(rw,arguments)},iw=mE({}.isPrototypeOf),aw=lE.Object,uw=zE?function(e){return"symbol"==typeof e}:function(e){var t=BE("Symbol");return NE(t)&&iw(t.prototype,aw(e))},sw=lE.String,lw=function(e){try{return sw(e)}catch(e){return"Object"}},cw=lE.TypeError,fw=function(e){if(NE(e))return e;throw cw(lw(e)+" is not a function")},dw=function(e,t){var n=e[t];return null==n?void 0:fw(n)},pw=lE.TypeError,hw=lE.TypeError,vw=GE("toPrimitive"),gw=function(e){var t=function(e,t){if(!YE(e)||uw(e))return e;var n,r=dw(e,vw);if(r){if(void 0===t&&(t="default"),n=ow(r,e,t),!YE(n)||uw(n))return n;throw hw("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;if(NE(n=e.valueOf)&&!YE(r=ow(n,e)))return r;if("string"!==t&&NE(n=e.toString)&&!YE(r=ow(n,e)))return r;throw pw("Can't convert object to primitive value")}(e,t)}(e,"string");return uw(t)?t:t+""},yw=lE.TypeError,mw=Object.defineProperty,bw={f:KE?mw:function(e,t,n){if(nw(e),t=gw(t),nw(n),QE)try{return mw(e,t,n)}catch(e){}if("get"in n||"set"in n)throw yw("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ew=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ww=KE?function(e,t,n){return bw.f(e,t,Ew(1,n))}:function(e,t,n){return e[t]=n,e},Sw=mE(Function.toString);NE(dE.inspectSource)||(dE.inspectSource=function(e){return Sw(e)});var Cw,Dw,Aw,xw=dE.inspectSource,Ow=lE.WeakMap,Tw=NE(Ow)&&/native code/.test(xw(Ow)),Nw=pE("keys"),kw=function(e){return Nw[e]||(Nw[e]=TE(e))},Bw={},Iw=lE.TypeError,Fw=lE.WeakMap;if(Tw||dE.state){var Pw=dE.state||(dE.state=new Fw),Rw=mE(Pw.get),_w=mE(Pw.has),Lw=mE(Pw.set);Cw=function(e,t){if(_w(Pw,e))throw new Iw("Object already initialized");return t.facade=e,Lw(Pw,e,t),t},Dw=function(e){return Rw(Pw,e)||{}},Aw=function(e){return _w(Pw,e)}}else{var jw=kw("state");Bw[jw]=!0,Cw=function(e,t){if(DE(e,jw))throw new Iw("Object already initialized");return t.facade=e,ww(e,jw,t),t},Dw=function(e){return DE(e,jw)?e[jw]:{}},Aw=function(e){return DE(e,jw)}}var Mw={set:Cw,get:Dw,has:Aw,enforce:function(e){return Aw(e)?Dw(e):Cw(e,{})},getterFor:function(e){return function(t){var n;if(!YE(t)||(n=Dw(t)).type!==e)throw Iw("Incompatible receiver, "+e+" required");return n}}},zw=Function.prototype,Hw=KE&&Object.getOwnPropertyDescriptor,Uw=DE(zw,"name"),$w={EXISTS:Uw,PROPER:Uw&&"something"===function(){}.name,CONFIGURABLE:Uw&&(!KE||KE&&Hw(zw,"name").configurable)},Vw=iE((function(e){var t=$w.CONFIGURABLE,n=Mw.get,r=Mw.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;NE(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!DE(i,"name")||t&&i.name!==f)&&ww(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==lE?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ww(e,n,i)):l?e[n]=i:fE(n,i)})(Function.prototype,"toString",(function(){return NE(this)&&n(this).source||xw(this)}))})),Gw=mE({}.toString),Ww=mE("".slice),qw=function(e){return Ww(Gw(e),8,-1)},Kw=GE("toStringTag"),Yw=lE.Object,Xw="Arguments"==qw(function(){return arguments}()),Zw=qE?qw:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Yw(e),Kw))?n:Xw?qw(t):"Object"==(r=qw(t))&&NE(t.callee)?"Arguments":r},Jw=qE?{}.toString:function(){return"[object "+Zw(this)+"]"};qE||Vw(Object.prototype,"toString",Jw,{unsafe:!0});var Qw={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},eS=JE("span").classList,tS=eS&&eS.constructor&&eS.constructor.prototype,nS=tS===Object.prototype?void 0:tS,rS=mE(mE.bind),oS=function(e,t){return fw(e),void 0===t?e:rS?rS(e,t):function(){return e.apply(t,arguments)}},iS=lE.Object,aS=mE("".split),uS=jE((function(){return!iS("z").propertyIsEnumerable(0)}))?function(e){return"String"==qw(e)?aS(e,""):iS(e)}:iS,sS=Math.ceil,lS=Math.floor,cS=function(e){var t=+e;return t!=t||0===t?0:(t>0?lS:sS)(t)},fS=Math.min,dS=function(e){return e>0?fS(cS(e),9007199254740991):0},pS=function(e){return dS(e.length)},hS=Array.isArray||function(e){return"Array"==qw(e)},vS=function(){},gS=[],yS=BE("Reflect","construct"),mS=/^\s*(?:class|function)\b/,bS=mE(mS.exec),ES=!mS.exec(vS),wS=function(e){if(!NE(e))return!1;try{return yS(vS,gS,e),!0}catch(e){return!1}},SS=!yS||jE((function(){var e;return wS(wS.call)||!wS(Object)||!wS((function(){e=!0}))||e}))?function(e){if(!NE(e))return!1;switch(Zw(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ES||!!bS(mS,xw(e))}:wS,CS=GE("species"),DS=lE.Array,AS=function(e,t){return new(function(e){var t;return hS(e)&&(t=e.constructor,(SS(t)&&(t===DS||hS(t.prototype))||YE(t)&&null===(t=t[CS]))&&(t=void 0)),void 0===t?DS:t}(e))(0===t?0:t)},xS=mE([].push),OS=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=SE(s),v=uS(h),g=oS(l,c),y=pS(v),m=0,b=f||AS,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:xS(E,d)}else switch(e){case 4:return!1;case 7:xS(E,d)}return i?-1:r||o?o:E}},TS={forEach:OS(0),map:OS(1),filter:OS(2),some:OS(3),every:OS(4),find:OS(5),findIndex:OS(6),filterReject:OS(7)},NS=function(e,t){var n=[][e];return!!n&&jE((function(){n.call(null,t||function(){throw 1},1)}))},kS=TS.forEach,BS=NS("forEach")?[].forEach:function(e){return kS(this,e,arguments.length>1?arguments[1]:void 0)},IS=function(e){if(e&&e.forEach!==BS)try{ww(e,"forEach",BS)}catch(t){e.forEach=BS}};for(var FS in Qw)Qw[FS]&&IS(lE[FS]&&lE[FS].prototype);IS(nS);var PS={}.propertyIsEnumerable,RS=Object.getOwnPropertyDescriptor,_S=RS&&!PS.call({1:2},1)?function(e){var t=RS(this,e);return!!t&&t.enumerable}:PS,LS={f:_S},jS=function(e){return uS(EE(e))},MS=Object.getOwnPropertyDescriptor,zS={f:KE?MS:function(e,t){if(e=jS(e),t=gw(t),QE)try{return MS(e,t)}catch(e){}if(DE(e,t))return Ew(!ow(LS.f,e,t),e[t])}},HS=Math.max,US=Math.min,$S=function(e,t){var n=cS(e);return n<0?HS(n+t,0):US(n,t)},VS=function(e){return function(t,n,r){var o,i=jS(t),a=pS(i),u=$S(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},GS={includes:VS(!0),indexOf:VS(!1)},WS=GS.indexOf,qS=mE([].push),KS=function(e,t){var n,r=jS(e),o=0,i=[];for(n in r)!DE(Bw,n)&&DE(r,n)&&qS(i,n);for(;t.length>o;)DE(r,n=t[o++])&&(~WS(i,n)||qS(i,n));return i},YS=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],XS=YS.concat("length","prototype"),ZS={f:Object.getOwnPropertyNames||function(e){return KS(e,XS)}},JS={f:Object.getOwnPropertySymbols},QS=mE([].concat),eC=BE("Reflect","ownKeys")||function(e){var t=ZS.f(nw(e)),n=JS.f;return n?QS(t,n(e)):t},tC=function(e,t){for(var n=eC(t),r=bw.f,o=zS.f,i=0;i<n.length;i++){var a=n[i];DE(e,a)||r(e,a,o(t,a))}},nC=/#|\.prototype\./,rC=function(e,t){var n=iC[oC(e)];return n==uC||n!=aC&&(NE(t)?jE(t):!!t)},oC=rC.normalize=function(e){return String(e).replace(nC,".").toLowerCase()},iC=rC.data={},aC=rC.NATIVE="N",uC=rC.POLYFILL="P",sC=rC,lC=zS.f,cC=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?lE:l?lE[u]||fE(u,{}):(lE[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=lC(n,r))&&a.value:n[r],!sC(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;tC(i,o)}(e.sham||o&&o.sham)&&ww(i,"sham",!0),Vw(n,r,i,e)}},fC=Object.keys||function(e){return KS(e,YS)},dC=jE((function(){fC(1)}));
|
|
19
19
|
/*!
|
|
20
20
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
21
21
|
*
|
|
22
22
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
23
23
|
* Released under the MIT License.
|
|
24
|
-
*/function pC(e){return"[object Object]"===Object.prototype.toString.call(e)}cC({target:"Object",stat:!0,forced:dC},{keys:function(e){return fC(SE(e))}});var hC={isHistory(e){return!1!==pC(t=e)&&(void 0===(n=t.constructor)||!1!==pC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||jf.isOperationList(e.redos[0]))&&(0===e.undos.length||jf.isOperationList(e.undos[0]));var t,n,r}},vC=new WeakMap,gC=new WeakMap,yC={isHistoryEditor:e=>hC.isHistory(e.history)&&Nf.isEditor(e),isMerging:e=>gC.get(e),isSaving:e=>vC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=yC.isMerging(e);gC.set(e,!1),t(),gC.set(e,n)},withoutSaving(e,t){var n=yC.isSaving(e);vC.set(e,!1),t(),vC.set(e,n)}},mC=lE.String,bC=function(e){if("Symbol"===Zw(e))throw TypeError("Cannot convert a Symbol value to a string");return mC(e)},EC=function(){var e=nw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wC=$w.PROPER,SC=RegExp.prototype,CC=SC.toString,DC=mE(EC),AC=jE((function(){return"/a/b"!=CC.call({source:"a",flags:"b"})})),OC=wC&&"toString"!=CC.name;(AC||OC)&&Vw(RegExp.prototype,"toString",(function(){var e=nw(this),t=bC(e.source),n=e.flags;return"/"+t+"/"+bC(void 0===n&&iw(SC,e)&&!("flags"in SC)?DC(e):n)}),{unsafe:!0});var xC,TC=KE?Object.defineProperties:function(e,t){nw(e);for(var n,r=jS(t),o=fC(t),i=o.length,a=0;i>a;)bw.f(e,n=o[a++],r[n]);return e},NC=BE("document","documentElement"),kC=kw("IE_PROTO"),BC=function(){},IC=function(e){return"<script>"+e+"<\/script>"},FC=function(e){e.write(IC("")),e.close();var t=e.parentWindow.Object;return e=null,t},PC=function(){try{xC=new ActiveXObject("htmlfile")}catch(e){}var e,t;PC="undefined"!=typeof document?document.domain&&xC?FC(xC):((t=JE("iframe")).style.display="none",NC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(IC("document.F=Object")),e.close(),e.F):FC(xC);for(var n=YS.length;n--;)delete PC.prototype[YS[n]];return PC()};Bw[kC]=!0;var _C=Object.create||function(e,t){var n;return null!==e?(BC.prototype=nw(e),n=new BC,BC.prototype=null,n[kC]=e):n=PC(),void 0===t?n:TC(n,t)},RC=GE("unscopables"),LC=Array.prototype;null==LC[RC]&&bw.f(LC,RC,{configurable:!0,value:_C(null)});var jC=function(e){LC[RC][e]=!0},MC=GS.includes;cC({target:"Array",proto:!0},{includes:function(e){return MC(this,e,arguments.length>1?arguments[1]:void 0)}}),jC("includes");var zC=GE("match"),HC=function(e){var t;return YE(e)&&(void 0!==(t=e[zC])?!!t:"RegExp"==qw(e))},UC=lE.TypeError,$C=function(e){if(HC(e))throw UC("The method doesn't accept regular expressions");return e},VC=GE("match"),GC=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VC]=!1,"/./"[e](t)}catch(e){}}return!1},WC=mE("".indexOf);cC({target:"String",proto:!0,forced:!GC("includes")},{includes:function(e){return!!~WC(bC(EE(this)),bC($C(e)),arguments.length>1?arguments[1]:void 0)}});var qC=/"/g,KC=mE("".replace);cC({target:"String",proto:!0,forced:("anchor",jE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=bC(EE(this)),r="<a",(r+=' name="'+KC(bC(t),qC,""")+'"')+">"+n+"</a>";var t,n,r}});var YC=function(e,t,n){var r,o;nw(e);try{if(!(r=dw(e,"return"))){if("throw"===t)throw n;return n}r=ow(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return nw(r),n},XC=function(e,t,n,r){try{return r?t(nw(n)[0],n[1]):t(n)}catch(t){YC(e,"throw",t)}},ZC={},JC=GE("iterator"),QC=Array.prototype,eD=function(e){return void 0!==e&&(ZC.Array===e||QC[JC]===e)},tD=function(e,t,n){var r=gw(t);r in e?bw.f(e,r,Ew(0,n)):e[r]=n},nD=GE("iterator"),rD=function(e){if(null!=e)return dw(e,nD)||dw(e,"@@iterator")||ZC[Zw(e)]},oD=lE.TypeError,iD=function(e,t){var n=arguments.length<2?rD(e):t;if(fw(n))return nw(ow(n,e));throw oD(lw(e)+" is not iterable")},aD=lE.Array,uD=GE("iterator"),sD=!1;try{var lD=0,cD={next:function(){return{done:!!lD++}},return:function(){sD=!0}};cD[uD]=function(){return this},Array.from(cD,(function(){throw 2}))}catch(Px){}var fD=function(e,t){if(!t&&!sD)return!1;var n=!1;try{var r={};r[uD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},dD=!fD((function(e){Array.from(e)}));cC({target:"Array",stat:!0,forced:dD},{from:function(e){var t=SE(e),n=SS(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=oS(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=rD(t),p=0;if(!d||this==aD&&eD(d))for(a=pS(t),u=n?new this(a):aD(a);a>p;p++)f=i?o(t[p],p):t[p],tD(u,p,f);else for(c=(l=iD(t,d)).next,u=n?new this:[];!(s=ow(c,l)).done;p++)f=i?XC(l,o,[s.value,p],!0):s.value,tD(u,p,f);return u.length=p,u}});var pD,hD,vD,gD=mE("".charAt),yD=mE("".charCodeAt),mD=mE("".slice),bD=function(e){return function(t,n){var r,o,i=bC(EE(t)),a=cS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=yD(i,a))<55296||r>56319||a+1===u||(o=yD(i,a+1))<56320||o>57343?e?gD(i,a):r:e?mD(i,a,a+2):o-56320+(r-55296<<10)+65536}},ED={codeAt:bD(!1),charAt:bD(!0)},wD=!jE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),SD=kw("IE_PROTO"),CD=lE.Object,DD=CD.prototype,AD=wD?CD.getPrototypeOf:function(e){var t=SE(e);if(DE(t,SD))return t[SD];var n=t.constructor;return NE(n)&&t instanceof n?n.prototype:t instanceof CD?DD:null},OD=GE("iterator"),xD=!1;[].keys&&("next"in(vD=[].keys())?(hD=AD(AD(vD)))!==Object.prototype&&(pD=hD):xD=!0);var TD=null==pD||jE((function(){var e={};return pD[OD].call(e)!==e}));TD&&(pD={}),NE(pD[OD])||Vw(pD,OD,(function(){return this}));var ND={IteratorPrototype:pD,BUGGY_SAFARI_ITERATORS:xD},kD=bw.f,BD=GE("toStringTag"),ID=function(e,t,n){e&&!DE(e=n?e:e.prototype,BD)&&kD(e,BD,{configurable:!0,value:t})},FD=ND.IteratorPrototype,PD=function(){return this},_D=lE.String,RD=lE.TypeError,LD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return nw(n),function(e){if("object"==typeof e||NE(e))return e;throw RD("Can't set "+_D(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),jD=$w.PROPER,MD=$w.CONFIGURABLE,zD=ND.IteratorPrototype,HD=ND.BUGGY_SAFARI_ITERATORS,UD=GE("iterator"),$D=function(){return this},VD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_C(FD,{next:Ew(1,n)}),ID(e,o,!1),ZC[o]=PD}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!HD&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[UD]||p["@@iterator"]||o&&p[o],v=!HD&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=AD(g.call(new e)))!==Object.prototype&&u.next&&(AD(u)!==zD&&(LD?LD(u,zD):NE(u[UD])||Vw(u,UD,$D)),ID(u,f,!0)),jD&&"values"==o&&h&&"values"!==h.name&&(MD?ww(p,"name","values"):(d=!0,v=function(){return ow(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(HD||d||!(l in p))&&Vw(p,l,s[l]);else cC({target:t,proto:!0,forced:HD||d},s);return p[UD]!==v&&Vw(p,UD,v,{name:o}),ZC[t]=v,s},GD=ED.charAt,WD=Mw.set,qD=Mw.getterFor("String Iterator");VD(String,"String",(function(e){WD(this,{type:"String Iterator",string:bC(e),index:0})}),(function(){var e,t=qD(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=GD(n,r),t.index+=e.length,{value:e,done:!1})}));var KD,YD=zS.f,XD=mE("".endsWith),ZD=mE("".slice),JD=Math.min,QD=GC("endsWith"),eA=!(QD||(KD=YD(String.prototype,"endsWith"),!KD||KD.writable));cC({target:"String",proto:!0,forced:!eA&&!QD},{endsWith:function(e){var t=bC(EE(this));$C(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:JD(dS(n),r),i=bC(e);return XD?XD(t,i,o):ZD(t,o-i.length,o)===i}});var tA=mE([].join),nA=uS!=Object,rA=NS("join",",");cC({target:"Array",proto:!0,forced:nA||!rA},{join:function(e){return tA(jS(this),void 0===e?",":e)}});var oA=GE("species"),iA=function(e){return LE>=51||!jE((function(){var t=[];return(t.constructor={})[oA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},aA=TS.map,uA=iA("map");cC({target:"Array",proto:!0,forced:!uA},{map:function(e){return aA(this,e,arguments.length>1?arguments[1]:void 0)}});var sA=lE.RegExp,lA=jE((function(){var e=sA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),cA=lA||jE((function(){return!sA("a","y").sticky})),fA={BROKEN_CARET:lA||jE((function(){var e=sA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:cA,UNSUPPORTED_Y:lA},dA=lE.RegExp,pA=jE((function(){var e=dA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),hA=lE.RegExp,vA=jE((function(){var e=hA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),gA=Mw.get,yA=pE("native-string-replace",String.prototype.replace),mA=RegExp.prototype.exec,bA=mA,EA=mE("".charAt),wA=mE("".indexOf),SA=mE("".replace),CA=mE("".slice),DA=function(){var e=/a/,t=/b*/g;return ow(mA,e,"a"),ow(mA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),AA=fA.BROKEN_CARET,OA=void 0!==/()??/.exec("")[1];(DA||OA||AA||pA||vA)&&(bA=function(e){var t,n,r,o,i,a,u,s=this,l=gA(s),c=bC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ow(bA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=AA&&s.sticky,h=ow(EC,s),v=s.source,g=0,y=c;if(p&&(h=SA(h,"y",""),-1===wA(h,"g")&&(h+="g"),y=CA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==EA(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),OA&&(n=new RegExp("^"+v+"$(?!\\s)",h)),DA&&(r=s.lastIndex),o=ow(mA,p?n:s,y),p?o?(o.input=CA(o.input,g),o[0]=CA(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:DA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),OA&&o&&o.length>1&&ow(yA,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=_C(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var xA=bA;cC({target:"RegExp",proto:!0,forced:/./.exec!==xA},{exec:xA});var TA=Function.prototype,NA=TA.apply,kA=TA.bind,BA=TA.call,IA="object"==typeof Reflect&&Reflect.apply||(kA?BA.bind(NA):function(){return BA.apply(NA,arguments)}),FA=GE("species"),PA=RegExp.prototype,_A=function(e,t,n,r){var o=GE(e),i=!jE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[FA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=mE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=mE(e),s=t.exec;return s===xA||s===PA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Vw(String.prototype,e,s[0]),Vw(PA,o,s[1])}r&&ww(PA[o],"sham",!0)},RA=ED.charAt,LA=function(e,t,n){return t+(n?RA(e,t).length:1)},jA=Math.floor,MA=mE("".charAt),zA=mE("".replace),HA=mE("".slice),UA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$A=/\$([$&'`]|\d{1,2})/g,VA=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$A;return void 0!==o&&(o=SE(o),s=UA),zA(i,s,(function(i,s){var l;switch(MA(s,0)){case"$":return"$";case"&":return e;case"`":return HA(t,0,n);case"'":return HA(t,a);case"<":l=o[HA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=jA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?MA(s,1):r[f-1]+MA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},GA=lE.TypeError,WA=function(e,t){var n=e.exec;if(NE(n)){var r=ow(n,e,t);return null!==r&&nw(r),r}if("RegExp"===qw(e))return ow(xA,e,t);throw GA("RegExp#exec called on incompatible receiver")},qA=GE("replace"),KA=Math.max,YA=Math.min,XA=mE([].concat),ZA=mE([].push),JA=mE("".indexOf),QA=mE("".slice),eO="$0"==="a".replace(/./,"$0"),tO=!!/./[qA]&&""===/./[qA]("a","$0");_A("replace",(function(e,t,n){var r=tO?"$":"$0";return[function(e,n){var r=EE(this),o=null==e?void 0:dw(e,qA);return o?ow(o,e,r,n):ow(t,bC(r),e,n)},function(e,o){var i=nw(this),a=bC(e);if("string"==typeof o&&-1===JA(o,r)&&-1===JA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=NE(o);s||(o=bC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=WA(i,a);if(null===d)break;if(ZA(f,d),!l)break;""===bC(d[0])&&(i.lastIndex=LA(a,dS(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=bC((d=f[g])[0]),m=KA(YA(cS(d.index),a.length),0),b=[],E=1;E<d.length;E++)ZA(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=XA([y],b,m,a);void 0!==w&&ZA(S,w);var C=bC(IA(o,void 0,S))}else C=VA(y,a,m,b,w,o);m>=v&&(h+=QA(a,v,m)+C,v=m+y.length)}return h+QA(a,v)}]}),!!jE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!eO||tO);
|
|
25
|
-
/*! *****************************************************************************
|
|
26
|
-
Copyright (c) Microsoft Corporation.
|
|
27
|
-
|
|
28
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
29
|
-
purpose with or without fee is hereby granted.
|
|
30
|
-
|
|
31
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
32
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
33
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
34
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
35
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
36
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
38
|
-
***************************************************************************** */
|
|
39
|
-
var nO=function(e,t){return nO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nO(e,t)};function rO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nO(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oO=function(){return oO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oO.apply(this,arguments)};function iO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function aO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function uO(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var sO=0,lO=function(){this.id=""+sO++},cO=Mw.set,fO=Mw.getterFor("Array Iterator"),dO=VD(Array,"Array",(function(e,t){cO(this,{type:"Array Iterator",target:jS(e),index:0,kind:t})}),(function(){var e=fO(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ZC.Arguments=ZC.Array,jC("keys"),jC("values"),jC("entries");var pO=function(e,t,n){for(var r in t)Vw(e,r,t[r],n);return e},hO=lE.Array,vO=Math.max,gO=function(e,t,n){for(var r=pS(e),o=$S(t,r),i=$S(void 0===n?r:n,r),a=hO(vO(i-o,0)),u=0;o<i;o++,u++)tD(a,u,e[o]);return a.length=u,a},yO=ZS.f,mO="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bO={f:function(e){return mO&&"Window"==qw(e)?function(e){try{return yO(e)}catch(e){return gO(mO)}}(e):yO(jS(e))}},EO=jE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wO=Object.isExtensible,SO=jE((function(){wO(1)}))||EO?function(e){return!!YE(e)&&(!EO||"ArrayBuffer"!=qw(e))&&(!wO||wO(e))}:wO,CO=!jE((function(){return Object.isExtensible(Object.preventExtensions({}))})),DO=iE((function(e){var t=bw.f,n=!1,r=TE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=ZS.f,t=mE([].splice),o={};o[r]=1,e(o).length&&(ZS.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},cC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bO.f}))},fastKey:function(e,t){if(!YE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DE(e,r)){if(!SO(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!DE(e,r)){if(!SO(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return CO&&n&&SO(e)&&!DE(e,r)&&i(e),e}};Bw[r]=!0})),AO=lE.TypeError,OO=function(e,t){this.stopped=e,this.result=t},xO=OO.prototype,TO=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=oS(t,c),v=function(e){return r&&YC(r,"normal",e),new OO(!0,e)},g=function(e){return f?(nw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=rD(e)))throw AO(lw(e)+" is not iterable");if(eD(o)){for(i=0,a=pS(e);a>i;i++)if((u=g(e[i]))&&iw(xO,u))return u;return new OO(!1)}r=iD(e,o)}for(s=r.next;!(l=ow(s,r)).done;){try{u=g(l.value)}catch(e){YC(r,"throw",e)}if("object"==typeof u&&u&&iw(xO,u))return u}return new OO(!1)},NO=lE.TypeError,kO=function(e,t){if(iw(t,e))return e;throw NO("Incorrect invocation")},BO=function(e,t,n){var r,o;return LD&&NE(r=t.constructor)&&r!==n&&YE(o=r.prototype)&&o!==n.prototype&&LD(e,o),e},IO=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=lE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=mE(u[e]);Vw(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!YE(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(sC(e,!NE(a)||!(o||u.forEach&&!jE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),DO.enable();else if(sC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=jE((function(){f.has(1)})),h=fD((function(e){new a(e)})),v=!o&&jE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){kO(e,u);var n=BO(new a,e,s);return null!=t&&TO(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,cC({global:!0,forced:s!=a},l),ID(s,e),o||n.setStrong(s,e,r),s},FO=DO.getWeakData,PO=Mw.set,_O=Mw.getterFor,RO=TS.find,LO=TS.findIndex,jO=mE([].splice),MO=0,zO=function(e){return e.frozen||(e.frozen=new HO)},HO=function(){this.entries=[]},UO=function(e,t){return RO(e.entries,(function(e){return e[0]===t}))};HO.prototype={get:function(e){var t=UO(this,e);if(t)return t[1]},has:function(e){return!!UO(this,e)},set:function(e,t){var n=UO(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=LO(this.entries,(function(t){return t[0]===e}));return~t&&jO(this.entries,t,1),!!~t}};var $O,VO={getConstructor:function(e,t,n,r){var o=e((function(e,o){kO(e,i),PO(e,{type:t,id:MO++,frozen:void 0}),null!=o&&TO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=_O(t),u=function(e,t,n){var r=a(e),o=FO(nw(t),!0);return!0===o?zO(r).set(t,n):o[r.id]=n,e};return pO(i,{delete:function(e){var t=a(this);if(!YE(e))return!1;var n=FO(e);return!0===n?zO(t).delete(e):n&&DE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!YE(e))return!1;var n=FO(e);return!0===n?zO(t).has(e):n&&DE(n,t.id)}}),pO(i,n?{get:function(e){var t=a(this);if(YE(e)){var n=FO(e);return!0===n?zO(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},GO=Mw.enforce,WO=!lE.ActiveXObject&&"ActiveXObject"in lE,qO=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},KO=IO("WeakMap",qO,VO);if(Tw&&WO){$O=VO.getConstructor(qO,"WeakMap",!0),DO.enable();var YO=KO.prototype,XO=mE(YO.delete),ZO=mE(YO.has),JO=mE(YO.get),QO=mE(YO.set);pO(YO,{delete:function(e){if(YE(e)&&!SO(e)){var t=GO(this);return t.frozen||(t.frozen=new $O),XO(this,e)||t.frozen.delete(e)}return XO(this,e)},has:function(e){if(YE(e)&&!SO(e)){var t=GO(this);return t.frozen||(t.frozen=new $O),ZO(this,e)||t.frozen.has(e)}return ZO(this,e)},get:function(e){if(YE(e)&&!SO(e)){var t=GO(this);return t.frozen||(t.frozen=new $O),ZO(this,e)?JO(this,e):t.frozen.get(e)}return JO(this,e)},set:function(e,t){if(YE(e)&&!SO(e)){var n=GO(this);n.frozen||(n.frozen=new $O),ZO(this,e)?QO(this,e,t):n.frozen.set(e,t)}else QO(this,e,t);return this}})}var ex=GE("iterator"),tx=GE("toStringTag"),nx=dO.values,rx=function(e,t){if(e){if(e[ex]!==nx)try{ww(e,ex,nx)}catch(t){e[ex]=nx}if(e[tx]||ww(e,tx,t),Qw[t])for(var n in dO)if(e[n]!==dO[n])try{ww(e,n,dO[n])}catch(t){e[n]=dO[n]}}};for(var ox in Qw)rx(lE[ox]&&lE[ox].prototype,ox);rx(nS,"DOMTokenList");var ix=new WeakMap,ax=new WeakMap,ux=new WeakMap,sx=new WeakMap,lx=new WeakMap,cx=new WeakMap,fx=new WeakMap,dx=new WeakMap,px=new WeakMap,hx=new WeakMap,vx=new WeakMap,gx=new WeakMap,yx=new WeakMap,mx=new WeakMap,bx=new WeakMap,Ex=new WeakMap,wx=new WeakMap,Sx=new WeakMap,Cx=new WeakMap,Dx=new WeakMap,Ax=new WeakMap,Ox=new WeakMap,xx=new WeakMap,Tx=new WeakMap,Nx=new WeakMap,kx=TS.find,Bx=!0;"find"in[]&&Array(1).find((function(){Bx=!1})),cC({target:"Array",proto:!0,forced:Bx},{find:function(e){return kx(this,e,arguments.length>1?arguments[1]:void 0)}}),jC("find"),cC({global:!0},{globalThis:lE});const Ix=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),Zp&&(Mp.fn.offset=Zp),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),sh&&(Mp.fn.parent=sh),lh&&(Mp.fn.parents=lh),ih&&(Mp.fn.is=ih),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),th&&(Mp.fn.each=th),ph&&(Mp.fn.empty=ph);var Fx,Px,_x=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Rx=function(e){return Lx(e)&&1===e.nodeType},Lx=function(e){var t=_x(e);return!!t&&e instanceof t.Node},jx=function(e){var t=e&&e.anchorNode&&_x(e.anchorNode);return!!t&&e instanceof t.Selection},Mx=function(e){return Lx(e)&&3===e.nodeType},zx=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},Hx=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(Lx(r=i)&&8===r.nodeType||Rx(i)&&0===i.childNodes.length||Rx(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},Ux=function(e,t,n){return aO(Hx(e,t,n),1)[0]},$x=function e(t){var n,r,o="";if(Mx(t)&&t.nodeValue)return t.nodeValue;if(Rx(t)){try{for(var i=iO(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function Vx(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||Vx(o,t)}}function Gx(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==Fx.ELEMENT_NODE?"":t.tagName.toLowerCase()}(Px=Fx||(Fx={}))[Px.ELEMENT_NODE=1]="ELEMENT_NODE",Px[Px.TEXT_NODE=3]="TEXT_NODE",Px[Px.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",Px[Px.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",Px[Px.COMMENT_NODE=8]="COMMENT_NODE",Px[Px.DOCUMENT_NODE=9]="DOCUMENT_NODE",Px[Px.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",Px[Px.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Wx="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),qx="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var Kx="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Yx="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Xx="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Zx="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var Jx=!Xx&&!Yx&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,Qx={getWindow:function(e){var t=Ax.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=Dx.get(t);return n||(n=new lO,Dx.set(t,n)),n},setNewKey:function(e){var t=new lO;Dx.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=bx.get(r);if(null==o){if(Nf.isEditor(r))return n;break}var i=mx.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=Qx.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return bx.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=Qx.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[Qx.findPath(e,t)[0]];return _f.get(e,n)},toDOMNode:function(e,t){var n;if(Nf.isEditor(t))n=Ex.get(e);else{var r=Qx.findKey(e,t);n=Sx.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=Qx.toDOMNode(e,e);try{r=Rx(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=qf.isBackward(t),i=Qx.toDOMPoint(e,n),a=qf.isCollapsed(t)?i:Qx.toDOMPoint(e,r),u=Qx.getWindow(e).document.createRange(),s=aO(o?a:i,2),l=s[0],c=s[1],f=aO(o?i:a,2),d=f[0],p=f[1],h=!!(Rx(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(Rx(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=aO(Nf.node(e,t.path),1)[0],a=Qx.toDOMNode(e,i);Nf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=iO(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=Rx(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?wx.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=Qx.toSlateNode(e,t.target),u=Qx.findPath(e,a);if(Nf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Nf.point(e,u,{edge:l?"start":"end"}),f=l?Nf.before(e,c):Nf.after(e,c);if(f)return Nf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return Qx.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((jx(t)?t.anchorNode:t.startContainer)&&(jx(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Zx&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=Qx.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:Qx.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return qf.isExpanded(d)&&qf.isForward(d)&&Rx(i)&&Nf.void(e,{at:d.focus,mode:"highest"})&&(d=Nf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=aO(o?t:function(e){var t,n=aO(e,2),r=n[0],o=n[1];if(Rx(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=aO(Hx(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;Rx(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=Ux(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var v=Qx.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();uO(uO([],aO(Dp(g.querySelectorAll("[data-slate-zero-width]")))),aO(Dp(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||qx&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=Qx.toSlateNode(e,c);return{path:Qx.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Nf.hasPath(e,n.path)&&Nf.hasPath(e,r.path)},getNodeType:function(e){return Cf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return _f.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Nf.nodes(e,{universal:!0});try{for(var i=iO(o),a=i.next();!a.done;a=i.next()){var u=aO(a.value,1)[0];Cf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=aO(Nf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=aO(Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=aO(Nf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&aO(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Nf.isEnd(e,n.anchor,t)||Nf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=ix.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return sx.get(e)||null},getHoverbar:function(e){return cx.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=Qx.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=iO(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Nf.nodes(e,{match:function(t){return!(!Cf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=iO(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];Vx(Qx.toDOMNode(e,h),(function(e,t){var n=Mp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Nf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=iO(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(qf.isExpanded(t))return!1;var n=Qx.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Nf.node(e,t);if(null==n)return!1;var r=aO(n,1)[0].children;return 1===r.length&&""===r[0].text}},eT=1,tT={},nT={};var rT=TS.filter,oT=iA("filter");cC({target:"Array",proto:!0,forced:!oT},{filter:function(e){return rT(this,e,arguments.length>1?arguments[1]:void 0)}});var iT="\t\n\v\f\r \u2028\u2029\ufeff",aT=mE("".replace),uT="["+iT+"]",sT=RegExp("^"+uT+uT+"*"),lT=RegExp(uT+uT+"*$"),cT=function(e){return function(t){var n=bC(EE(t));return 1&e&&(n=aT(n,sT,"")),2&e&&(n=aT(n,lT,"")),n}},fT={start:cT(1),end:cT(2),trim:cT(3)},dT=$w.PROPER,pT=fT.trim;cC({target:"String",proto:!0,forced:function(e){return jE((function(){return!!iT[e]()||"
"!=="
"[e]()||dT&&iT[e].name!==e}))}("trim")},{trim:function(){return pT(this)}});var hT=[];var vT={};function gT(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var yT,mT,bT,ET,wT=lE.Promise,ST=GE("species"),CT=function(e){var t=BE(e),n=bw.f;KE&&t&&!t[ST]&&n(t,ST,{configurable:!0,get:function(){return this}})},DT=lE.TypeError,AT=GE("species"),OT=function(e,t){var n,r=nw(e).constructor;return void 0===r||null==(n=nw(r)[AT])?t:function(e){if(SS(e))return e;throw DT(lw(e)+" is not a constructor")}(n)},xT=mE([].slice),TT=/(?:ipad|iphone|ipod).*applewebkit/i.test(IE),NT="process"==qw(lE.process),kT=lE.setImmediate,BT=lE.clearImmediate,IT=lE.process,FT=lE.Dispatch,PT=lE.Function,_T=lE.MessageChannel,RT=lE.String,LT=0,jT={};try{yT=lE.location}catch(Px){}var MT=function(e){if(DE(jT,e)){var t=jT[e];delete jT[e],t()}},zT=function(e){return function(){MT(e)}},HT=function(e){MT(e.data)},UT=function(e){lE.postMessage(RT(e),yT.protocol+"//"+yT.host)};kT&&BT||(kT=function(e){var t=xT(arguments,1);return jT[++LT]=function(){IA(NE(e)?e:PT(e),void 0,t)},mT(LT),LT},BT=function(e){delete jT[e]},NT?mT=function(e){IT.nextTick(zT(e))}:FT&&FT.now?mT=function(e){FT.now(zT(e))}:_T&&!TT?(ET=(bT=new _T).port2,bT.port1.onmessage=HT,mT=oS(ET.postMessage,ET)):lE.addEventListener&&NE(lE.postMessage)&&!lE.importScripts&&yT&&"file:"!==yT.protocol&&!jE(UT)?(mT=UT,lE.addEventListener("message",HT,!1)):mT="onreadystatechange"in JE("script")?function(e){NC.appendChild(JE("script")).onreadystatechange=function(){NC.removeChild(this),MT(e)}}:function(e){setTimeout(zT(e),0)});var $T,VT,GT,WT,qT,KT,YT,XT,ZT={set:kT,clear:BT},JT=/ipad|iphone|ipod/i.test(IE)&&void 0!==lE.Pebble,QT=/web0s(?!.*chrome)/i.test(IE),eN=zS.f,tN=ZT.set,nN=lE.MutationObserver||lE.WebKitMutationObserver,rN=lE.document,oN=lE.process,iN=lE.Promise,aN=eN(lE,"queueMicrotask"),uN=aN&&aN.value;uN||($T=function(){var e,t;for(NT&&(e=oN.domain)&&e.exit();VT;){t=VT.fn,VT=VT.next;try{t()}catch(e){throw VT?WT():GT=void 0,e}}GT=void 0,e&&e.enter()},TT||NT||QT||!nN||!rN?!JT&&iN&&iN.resolve?((YT=iN.resolve(void 0)).constructor=iN,XT=oS(YT.then,YT),WT=function(){XT($T)}):NT?WT=function(){oN.nextTick($T)}:(tN=oS(tN,lE),WT=function(){tN($T)}):(qT=!0,KT=rN.createTextNode(""),new nN($T).observe(KT,{characterData:!0}),WT=function(){KT.data=qT=!qT}));var sN,lN,cN,fN,dN=uN||function(e){var t={fn:e,next:void 0};GT&&(GT.next=t),VT||(VT=t,WT()),GT=t},pN=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=fw(t),this.reject=fw(n)},hN={f:function(e){return new pN(e)}},vN=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},gN="object"==typeof window,yN=ZT.set,mN=GE("species"),bN="Promise",EN=Mw.getterFor(bN),wN=Mw.set,SN=Mw.getterFor(bN),CN=wT&&wT.prototype,DN=wT,AN=CN,ON=lE.TypeError,xN=lE.document,TN=lE.process,NN=hN.f,kN=NN,BN=!!(xN&&xN.createEvent&&lE.dispatchEvent),IN=NE(lE.PromiseRejectionEvent),FN=!1,PN=sC(bN,(function(){var e=Ow(DN),t=e!==String(DN);if(!t&&66===LE)return!0;if(LE>=51&&/native code/.test(e))return!1;var n=new DN((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[mN]=r,!(FN=n.then((function(){}))instanceof r)||!t&&gN&&!IN})),_N=PN||!fD((function(e){DN.all(e).catch((function(){}))})),RN=function(e){var t;return!(!YE(e)||!NE(t=e.then))&&t},LN=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;dN((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&HN(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(ON("Promise-chain cycle")):(u=RN(a))?ow(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&MN(e)}))}},jN=function(e,t,n){var r,o;BN?((r=xN.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),lE.dispatchEvent(r)):r={promise:t,reason:n},!IN&&(o=lE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=lE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},MN=function(e){ow(yN,lE,(function(){var t,n=e.facade,r=e.value;if(zN(e)&&(t=vN((function(){NT?TN.emit("unhandledRejection",r,n):jN("unhandledrejection",n,r)})),e.rejection=NT||zN(e)?2:1,t.error))throw t.value}))},zN=function(e){return 1!==e.rejection&&!e.parent},HN=function(e){ow(yN,lE,(function(){var t=e.facade;NT?TN.emit("rejectionHandled",t):jN("rejectionhandled",t,e.value)}))},UN=function(e,t,n){return function(r){e(t,r,n)}},$N=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,LN(e,!0))},VN=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw ON("Promise can't be resolved itself");var r=RN(t);r?dN((function(){var n={done:!1};try{ow(r,t,UN(VN,n,e),UN($N,n,e))}catch(t){$N(n,t,e)}})):(e.value=t,e.state=1,LN(e,!1))}catch(t){$N({done:!1},t,e)}}};if(PN&&(AN=(DN=function(e){kO(this,AN),fw(e),ow(sN,this);var t=EN(this);try{e(UN(VN,t),UN($N,t))}catch(e){$N(t,e)}}).prototype,(sN=function(e){wN(this,{type:bN,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=pO(AN,{then:function(e,t){var n=SN(this),r=n.reactions,o=NN(OT(this,DN));return o.ok=!NE(e)||e,o.fail=NE(t)&&t,o.domain=NT?TN.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&LN(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),lN=function(){var e=new sN,t=EN(e);this.promise=e,this.resolve=UN(VN,t),this.reject=UN($N,t)},hN.f=NN=function(e){return e===DN||e===cN?new lN(e):kN(e)},NE(wT)&&CN!==Object.prototype)){fN=CN.then,FN||(Vw(CN,"then",(function(e,t){var n=this;return new DN((function(e,t){ow(fN,n,e,t)})).then(e,t)}),{unsafe:!0}),Vw(CN,"catch",AN.catch,{unsafe:!0}));try{delete CN.constructor}catch(Px){}LD&&LD(CN,AN)}cC({global:!0,wrap:!0,forced:PN},{Promise:DN}),ID(DN,bN,!1),CT(bN),cN=BE(bN),cC({target:bN,stat:!0,forced:PN},{reject:function(e){var t=NN(this);return ow(t.reject,void 0,e),t.promise}}),cC({target:bN,stat:!0,forced:PN},{resolve:function(e){return function(e,t){if(nw(e),YE(t)&&t.constructor===e)return t;var n=hN.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),cC({target:bN,stat:!0,forced:_N},{all:function(e){var t=this,n=NN(t),r=n.resolve,o=n.reject,i=vN((function(){var n=fw(t.resolve),i=[],a=0,u=1;TO(e,(function(e){var s=a++,l=!1;u++,ow(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=NN(t),r=n.reject,o=vN((function(){var o=fw(t.resolve);TO(e,(function(e){ow(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var GN=fA.UNSUPPORTED_Y,WN=Math.min,qN=[].push,KN=mE(/./.exec),YN=mE(qN),XN=mE("".slice);function ZN(e){Promise.resolve().then(e)}function JN(e,t){return Cf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Nf.isVoid(t,e),u="";a||(u=i.map((function(e){return JN(e,t)})).join(""));var s=function(e){return vT[e]||gT}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||hT.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=Qx.getParentsNodes(t,e).some((function(e){return"pre"===Qx.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=Qx.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return hT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function QN(e){return"w-e-element-"+e}_A("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=bC(EE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!HC(e))return ow(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=ow(xA,f,r))&&!((a=f.lastIndex)>c&&(YN(s,XN(r,c,i.index)),i.length>1&&i.index<r.length&&IA(qN,s,gO(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&KN(f,"")||YN(s,""):YN(s,XN(r,c)),s.length>o?gO(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ow(t,this,e,n)}:t,[function(t,n){var o=EE(this),i=null==t?void 0:dw(t,e);return i?ow(i,t,o,n):ow(r,bC(o),t,n)},function(e,o){var i=nw(this),a=bC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=OT(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(GN?"g":"y"),f=new s(GN?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===WA(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=GN?0:h;var g,y=WA(f,GN?XN(a,h):a);if(null===y||(g=WN(dS(f.lastIndex+(GN?h:0)),a.length))===p)h=LA(a,h,l);else{if(YN(v,XN(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(YN(v,y[m]),v.length===d)return v;h=p=g}}return YN(v,XN(a,p)),v}]}),!!jE((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),GN);var ek=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},tk=function(e,t,n){var r=Qx.toDOMRange(e,t).getBoundingClientRect(),o=Qx.toDOMRange(e,n).getBoundingClientRect();return ek(r,o)&&ek(o,r)},nk=["span","b","strong","i","em","s","strike","u","font","sub","sup"],rk=[];var ok=[];var ik={};var ak=bw.f,uk=ZS.f,sk=Mw.enforce,lk=GE("match"),ck=lE.RegExp,fk=ck.prototype,dk=lE.SyntaxError,pk=mE(EC),hk=mE(fk.exec),vk=mE("".charAt),gk=mE("".replace),yk=mE("".indexOf),mk=mE("".slice),bk=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ek=/a/g,wk=/a/g,Sk=new ck(Ek)!==Ek,Ck=fA.MISSED_STICKY,Dk=fA.UNSUPPORTED_Y,Ak=KE&&(!Sk||Ck||pA||vA||jE((function(){return wk[lk]=!1,ck(Ek)!=Ek||ck(wk)==wk||"/a/i"!=ck(Ek,"i")})));if(sC("RegExp",Ak)){for(var Ok=function(e,t){var n,r,o,i,a,u,s=iw(fk,this),l=HC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===Ok)return e;if((l||iw(fk,e))&&(e=e.source,c&&(t="flags"in d?d.flags:pk(d))),e=void 0===e?"":bC(e),t=void 0===t?"":bC(t),d=e,pA&&"dotAll"in Ek&&(r=!!t&&yk(t,"s")>-1)&&(t=gk(t,/s/g,"")),n=t,Ck&&"sticky"in Ek&&(o=!!t&&yk(t,"y")>-1)&&Dk&&(t=gk(t,/y/g,"")),vA&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=vk(e,r)))t+=vk(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:hk(bk,mk(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||DE(a,c))throw new dk("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=BO(ck(e,t),s?this:fk,Ok),(r||o||f.length)&&(u=sk(a),r&&(u.dotAll=!0,u.raw=Ok(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=vk(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+vk(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{ww(a,"source",""===d?"(?:)":d)}catch(e){}return a},xk=function(e){e in Ok||ak(Ok,e,{configurable:!0,get:function(){return ck[e]},set:function(t){ck[e]=t}})},Tk=uk(ck),Nk=0;Tk.length>Nk;)xk(Tk[Nk++]);fk.constructor=Ok,Ok.prototype=fk,Vw(lE,"RegExp",Ok)}CT("RegExp");var kk=new RegExp(String.fromCharCode(160),"g");function Bk(e){return e.replace(kk," ")}function Ik(e,t){var n=e.length;if(n){var r=e[n-1];if(ed.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function Fk(e,t,n){return{type:"paragraph",children:[{text:Mp(e).text().replace(/\s+/gm," ")}]}}function Pk(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==Fx.ELEMENT_NODE)if(e.nodeType!==Fx.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=Bk(r),Ik(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(Ik(n,"\n")||n.push({text:"\n"}));var o=Rk(Mp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in ik)if(e[0].matches(t))return ik[t];return Fk}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Nf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),ok.forEach((function(n){r=n(e[0],r,t)})))})),o}function _k(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=Bk(n)};return ok.forEach((function(n){r=n(e[0],r,t)})),r}function Rk(e,t){rk.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Mp(r(e[0])))}));var n=Gx(e);if("span"===n){if(e.attr("data-w-e-type"))return Pk(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(n){return Mp(e[0]).empty(),Mp(e[0]).append(Mp(n)),_k(Mp(e[0]),t)}))}return _k(e,t)}return"code"===n?"pre"===Gx(e.parent())?Pk(e,t):_k(e,t):nk.includes(n)?_k(e,t):Pk(e,t)}function Lk(e,t,n){var r=Mp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function jk(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Mp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=Rk(Mp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Mk=bw.f,zk=DO.fastKey,Hk=Mw.set,Uk=Mw.getterFor,$k={getConstructor:function(e,t,n,r){var o=e((function(e,o){kO(e,i),Hk(e,{type:t,index:_C(null),first:void 0,last:void 0,size:0}),KE||(e.size=0),null!=o&&TO(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Uk(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=zk(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),KE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=zk(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return pO(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,KE?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),KE?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=oS(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),pO(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),KE&&Mk(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Uk(t),i=Uk(r);VD(e,t,(function(e,t){Hk(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),CT(t)}};IO("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$k);var Vk=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Gk(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):md.insertNodes(e,t,{mode:"highest"})}var Wk=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=aO(qf.edges(n),2),o=r[0],i=r[1],a=Nf.void(t,{at:o.path}),u=Nf.void(t,{at:i.path});if(!qf.isCollapsed(n)||a){var s=Qx.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=aO(u,1)[0],d=s.cloneRange(),p=Qx.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),Mx(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",$x(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var n,r,o=e.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),a=JSON.parse(i);t.insertFragment(a)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else{var l=Qx.getLeftLengthOfMaxLength(t);if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=iO(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&l>0&&md.splitNodes(t,{always:!0}),t.insertText(h),f=!0}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}}}},t},qk=function(e){return null!=e},Kk={object:!0,function:!0,undefined:!0},Yk=/^\s*class[\s{/}]/,Xk=Function.prototype.toString,Zk=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!qk(e)&&hasOwnProperty.call(Kk,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!Yk.test(Xk.call(e))},Jk=function(e){return null!=e},Qk=Object.keys,eB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return Qk(Jk(e)?Object(e):e)},tB=function(e){if(!Jk(e))throw new TypeError("Cannot use null or undefined");return e},nB=Math.max,rB=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=nB(arguments.length,2);for(e=Object(tB(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)eB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},oB=Array.prototype.forEach,iB=Object.create,aB=function(e,t){var n;for(n in e)t[n]=e[n]},uB=function(e){var t=iB(null);return oB.call(arguments,(function(e){Jk(e)&&aB(Object(e),t)})),t},sB="razdwatrzy",lB=String.prototype.indexOf,cB="function"==typeof sB.contains&&!0===sB.contains("dwa")&&!1===sB.contains("foo")?String.prototype.contains:function(e){return lB.call(this,e,arguments[1])>-1},fB=iE((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],qk(e)?(n=cB.call(e,"c"),r=cB.call(e,"e"),o=cB.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?rB(uB(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],qk(t)?Zk(t)?qk(n)?Zk(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,qk(e)?(r=cB.call(e,"c"),o=cB.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?rB(uB(i),a):a}})),dB=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},pB=iE((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return dB(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return dB(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(dB(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:fB(n),once:fB(r),off:fB(o),emit:fB(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function hB(e){var t=Tx.get(e);return null==t&&(t=pB(),Tx.set(e,t)),t}var vB=new WeakMap;function gB(e,t){var n=vB.get(e);null==n&&(n=new Set,vB.set(e,n)),n.add(t)}function yB(e){return vB.get(e)||new Set}function mB(e){vB.set(e,new Set)}function bB(e){var t=Qx.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function EB(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=bB(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=Qx.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function wB(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Cf.isElement(t)&&e.isVoid(t),i=Cf.isElement(t)&&e.isInline(t),a=Cx.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(Ix.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=bB(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,E={},w=s-g,S=l-y;if("bar"===n)return E.left=S+"px",w>40?E.bottom=b-w+5+"px":E.top=w+c+5+"px",E;if("modal"===n)return o?i?S>(m-f)/2?E.right=m-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((v=w)<0&&(v=0),E.top=v+"px"):w>(b-c)/2?E.bottom=b-w+5+"px":((v=w+c)<0&&(v=0),E.top=v+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function SB(e,t){ZN((function(){var n=bB(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var E=t.css("left"),w=parseInt(E.toString())-r;w<0&&(w=0),t.css("left",w+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var CB=iA("slice"),DB=GE("species"),AB=lE.Array,OB=Math.max;cC({target:"Array",proto:!0,forced:!CB},{slice:function(e,t){var n,r,o,i=jS(this),a=pS(i),u=$S(e,a),s=$S(void 0===t?a:t,a);if(hS(i)&&(n=i.constructor,(SS(n)&&(n===AB||hS(n.prototype))||YE(n)&&null===(n=n[DB]))&&(n=void 0),n===AB||void 0===n))return xT(i,u,s);for(r=new(void 0===n?AB:n)(OB(s-u,0)),o=0;u<s;u++,o++)u in i&&tD(r,o,i[u]);return r.length=o,r}});var xB=zS.f,TB=mE("".startsWith),NB=mE("".slice),kB=Math.min,BB=GC("startsWith"),IB=!BB&&!!function(){var e=xB(String.prototype,"startsWith");return e&&!e.writable}();cC({target:"String",proto:!0,forced:!IB&&!BB},{startsWith:function(e){var t=bC(EE(this));$C(e);var n=dS(kB(arguments.length>1?arguments[1]:void 0,t.length)),r=bC(e);return TB?TB(t,r,n):NB(t,n,n+r.length)===r}});var FB=Object.assign,PB=Object.defineProperty,_B=mE([].concat),RB=!FB||jE((function(){if(KE&&1!==FB({b:1},FB(PB({},"a",{enumerable:!0,get:function(){PB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=FB({},e)[n]||fC(FB({},t)).join("")!=r}))?function(e,t){for(var n=SE(e),r=arguments.length,o=1,i=JS.f,a=LS.f;r>o;)for(var u,s=uS(arguments[o++]),l=i?_B(fC(s),i(s)):fC(s),c=l.length,f=0;c>f;)u=l[f++],KE&&!ow(a,s,u)||(n[u]=s[u]);return n}:FB;cC({target:"Object",stat:!0,forced:Object.assign!==RB},{assign:RB});var LB=["props","attrs","style","dataset","on","hook"];function jB(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!LB.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Ag(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&jB(e)}))}var MB=[];var zB={};function HB(e,t,n){return Fv(n.isInline(e)?"span":"div",null,t)}function UB(e,t){return void 0===t&&(t=!1),Fv("span",{"data-slate-string":!0},t?e+"\n":e)}function $B(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Fv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Fv("br",null):null)}function VB(e,t,n,r){return mx.set(e,t),bx.set(e,n),Cf.isElement(e)?function(e,t){var n,r=Qx.findKey(t,e),o=t.isInline(e),i=Nf.isVoid(t,e),a=QN(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return zB[e]||HB}(s);n=i?null:c.map((function(n,r){return VB(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=aO(_f.texts(e),1),v=aO(h[0],1)[0],g=Fv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},VB(v,0,e,t));d=Fv(p,{style:{position:"relative"}},d,g),mx.set(v,0),bx.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return MB.forEach((function(r){n=r(e,t)})),n}(e,d)),ZN((function(){var t=zx(a);null!=t&&(Sx.set(r,t),Cx.set(e,t),wx.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=Qx.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=Qx.findPath(n,e),a=o([e,i]),u=ed.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=Qx.findPath(o,n),u=Mf.parent(a);if(Nf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?$B(_f.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Nf.string(o,u)?""===i?$B():t&&"\n"===i.slice(-1)?UB(i,!0):UB(i):$B(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return MB.forEach((function(t){n=t(e,n)})),n}(r,i),Fv("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Fv("span",{"data-slate-node":"text",id:l,key:r.id},s);return ZN((function(){var t=zx(l);null!=t&&(Sx.set(r,t),Cx.set(e,t),wx.set(t,e))})),c}(e,n,r)}function GB(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),pv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=VB(e,n,t,t);return jB(r),r}));var c=vx.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Mp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=fv([yv,Ov,Bv,Ev,Dv,vv]))(n,s),vx.set(e,!1),gx.set(e,p)}else{var d=yx.get(e),p=gx.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=zx(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=_x(n);h&&Ax.set(t,h)}Ex.set(t,n),Cx.set(t,n),wx.set(n,t),yx.set(e,s)}}function WB(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function qB(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function KB(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return qB(n.overflowY,t)||qB(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function YB(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function XB(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!WB(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;WB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&KB(f)&&!KB(document.documentElement)||null!=f&&KB(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,E=g.right,w=g.bottom,S=g.left,C="start"===o||"nearest"===o?b:"end"===o?w:b+y/2,D="center"===i?S+m/2:"end"===i?E:S,A=[],O=0;O<c.length;O++){var x=c[O],T=x.getBoundingClientRect(),N=T.height,k=T.width,B=T.top,I=T.right,F=T.bottom,P=T.left;if("if-needed"===r&&b>=0&&S>=0&&w<=p&&E<=d&&b>=B&&w<=F&&S>=P&&E<=I)return A;var _=getComputedStyle(x),R=parseInt(_.borderLeftWidth,10),L=parseInt(_.borderTopWidth,10),j=parseInt(_.borderRightWidth,10),M=parseInt(_.borderBottomWidth,10),z=0,H=0,U="offsetWidth"in x?x.offsetWidth-x.clientWidth-R-j:0,$="offsetHeight"in x?x.offsetHeight-x.clientHeight-L-M:0;if(l===x)z="start"===o?C:"end"===o?C-p:"nearest"===o?YB(v,v+p,p,L,M,v+C,v+C+y,y):C-p/2,H="start"===i?D:"center"===i?D-d/2:"end"===i?D-d:YB(h,h+d,d,R,j,h+D,h+D+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?C-B-L:"end"===o?C-F+M+$:"nearest"===o?YB(B,F,N,L,M+$,C,C+y,y):C-(B+N/2)+$/2,H="start"===i?D-P-R:"center"===i?D-(P+k/2)+U/2:"end"===i?D-I+j+U:YB(P,I,k,R,j+U,D,D+m,m);var V=x.scrollLeft,G=x.scrollTop;C+=G-(z=Math.max(0,Math.min(G+z,x.scrollHeight-N+$))),D+=V-(H=Math.max(0,Math.min(V+H,x.scrollWidth-k+U)))}A.push({el:x,top:z,left:H})}return A}function ZB(e){return e===Object(e)&&0!==Object.keys(e).length}function JB(e,t){return Lx(t)&&Qx.hasDOMNode(e,t,{editable:!0})}function QB(e,t){if(e.getConfig().readOnly)return!1;var n=eI(e,t)&&Qx.toSlateNode(e,t);return Nf.isVoid(e,n)}function eI(e,t){return Lx(t)&&Qx.hasDOMNode(e,t)}function tI(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=Qx.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=Ex.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=Qx.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&qf.equals(l,r)){var c=!0;if(qf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||Qx.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&Qx.toDOMRange(t,r);if(v){qf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(ZB(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:XB(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:ZB(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(XB(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&qx&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=Qx.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var nI=new WeakMap,rI=new WeakMap,oI={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},iI={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},aI={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},uI=function(e){var t=oI[e],n=iI[e],r=aI[e],o=t&&_g(t),i=n&&_g(n),a=r&&_g(r);return function(e){return!(!o||!o(e))||!!(Wx&&i&&i(e))||!(Wx||!a||!a(e))}},sI={isBold:uI("bold"),isCompose:uI("compose"),isMoveBackward:uI("moveBackward"),isMoveForward:uI("moveForward"),isDeleteBackward:uI("deleteBackward"),isDeleteForward:uI("deleteForward"),isDeleteLineBackward:uI("deleteLineBackward"),isDeleteLineForward:uI("deleteLineForward"),isDeleteWordBackward:uI("deleteWordBackward"),isDeleteWordForward:uI("deleteWordForward"),isExtendBackward:uI("extendBackward"),isExtendForward:uI("extendForward"),isExtendLineBackward:uI("extendLineBackward"),isExtendLineForward:uI("extendLineForward"),isItalic:uI("italic"),isMoveLineBackward:uI("moveLineBackward"),isMoveLineForward:uI("moveLineForward"),isMoveWordBackward:uI("moveWordBackward"),isMoveWordForward:uI("moveWordForward"),isRedo:uI("redo"),isSplitBlock:uI("splitBlock"),isTransposeCharacter:uI("transposeCharacter"),isUndo:uI("undo"),isTab:uI("tab"),isSelectAll:uI("selectAll")};function lI(e){e.preventDefault()}var cI={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Jx&&!o&&JB(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=aO(r.getTargetRanges(),1)[0];if(s){var l=Qx.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&qf.equals(i,l)||md.select(n,l)}}if(i&&qf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Nf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Nf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Nf.deleteForward(n);break;case"deleteContentBackward":Nf.deleteBackward(n);break;case"deleteEntireSoftLine":Nf.deleteBackward(n,{unit:"line"}),Nf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Nf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Nf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Nf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Nf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Nf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Nf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Nf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!Nx.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Nf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&JB(n,r.target)){var a=Qx.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===Qx.toDOMNode(n,n)||Rx(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&Lx(u)&&Qx.hasDOMNode(n,u)){var s=Qx.toSlateNode(n,u);if(Cf.isElement(s)&&!n.isVoid(s))return}if(Kx){var l=a.getSelection();null==l||l.removeAllRanges()}Ox.delete(n)}}}},focus:function(e,t,n){var r=Qx.toDOMNode(n,n),o=Qx.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,qx&&e.target!==r?r.focus():Ox.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&eI(n,e.target)&&Lx(e.target)){var r=Qx.toSlateNode(n,e.target),o=Qx.findPath(n,r);if(Nf.hasPath(n,o)&&_f.get(n,o)===r){var i=Nf.start(n,o),a=Nf.end(n,o),u=Nf.void(n,{at:i}),s=Nf.void(n,{at:a});if(u&&s&&Mf.equals(u[1],s[1])){var l=Nf.range(n,i);md.select(n,l)}}}},compositionstart:function(e,t,n){if(JB(n,e.target)){var r=n.selection;if(r&&qf.isExpanded(r)&&(Nf.deleteFragment(n),Promise.resolve().then((function(){tI(t,n,!0)}))),r&&qf.isCollapsed(r)){var o=Qx.toDOMRange(n,r).startContainer,i=o.textContent||"";nI.set(n,i),rI.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(JB(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(Zx||qx)&&Qx.cleanExposedTexNodeInSelectionBlock(n);for(var i=qf.isBackward(o)?o.focus:o.anchor,a=aO(Nf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=aO(Nf.node(n,i.path.slice(0,u+1)),1)[0];if(Cf.isElement(s)&&((Kx||qx)&&"link"===s.type||"code"===s.type)){Qx.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=Qx.getLeftLengthOfMaxLength(n);c<l.length?(Qx.toDOMRange(n,o).startContainer.textContent=nI.get(n)||"",c>0&&Nf.insertText(n,l.slice(0,c)),t.changeViewState()):Nf.insertText(n,l)}else Nf.insertText(n,l);Kx||setTimeout((function(){var e=n.selection;if(null!=e){var t=rI.get(n);null!=t&&Qx.toDOMRange(n,e).startContainer!==t&&(t.textContent=nI.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){JB(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&JB(n,r.target)){if(function(e,t){var n=sx.get(e),r=n&&n.getMenus(),o=cx.get(e),i=o&&o.getMenus(),a=oO(oO({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Pg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),sI.isTab(r))return lI(r),void n.handleTab();if(sI.isRedo(r))return lI(r),void("function"==typeof n.redo&&n.redo());if(sI.isUndo(r))return lI(r),void("function"==typeof n.undo&&n.undo());if(sI.isMoveLineBackward(r))return lI(r),void md.move(n,{unit:"line",reverse:!0});if(sI.isMoveLineForward(r))return lI(r),void md.move(n,{unit:"line"});if(sI.isExtendLineBackward(r))return lI(r),void md.move(n,{unit:"line",edge:"focus",reverse:!0});if(sI.isExtendLineForward(r))return lI(r),void md.move(n,{unit:"line",edge:"focus"});if(sI.isMoveBackward(r))return lI(r),void(o&&qf.isCollapsed(o)?md.move(n,{reverse:!0}):md.collapse(n,{edge:"start"}));if(sI.isMoveForward(r))return lI(r),void(o&&qf.isCollapsed(o)?md.move(n):md.collapse(n,{edge:"end"}));if(sI.isMoveWordBackward(r))return lI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word",reverse:!0});if(sI.isMoveWordForward(r))return lI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word"});if(sI.isSelectAll(r))return lI(r),void n.selectAll();if(Jx){if((Zx||Kx)&&o&&(sI.isDeleteBackward(r)||sI.isDeleteForward(r))&&qf.isCollapsed(o)){var i=_f.parent(n,o.anchor.path);if(Cf.isElement(i)&&Nf.isVoid(n,i)&&Nf.isInline(n,i))return r.preventDefault(),void md.delete(n,{unit:"block"})}}else{if(sI.isBold(r)||sI.isItalic(r)||sI.isTransposeCharacter(r))return void lI(r);if(sI.isSplitBlock(r))return lI(r),void Nf.insertBreak(n);if(sI.isDeleteBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n));if(sI.isDeleteForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n));if(sI.isDeleteLineBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"line"}));if(sI.isDeleteLineForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"line"}));if(sI.isDeleteWordBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"word"}));if(sI.isDeleteWordForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Jx&&!n.getConfig().readOnly&&JB(n,e.target)){e.preventDefault();var r=e.key;Nf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(JB(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&JB(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(qf.isExpanded(o))Nf.deleteFragment(n);else{var a=_f.parent(n,o.anchor.path);Nf.isVoid(n,a)&&md.delete(n)}}},paste:function(e,t,n){Nx.set(n,!0);var r=e;if(!n.getConfig().readOnly&&JB(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void Nx.set(n,!1);if(!Jx||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(eI(n,e.target)){var r=Qx.toSlateNode(n,e.target);Nf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(eI(n,r.target)&&!n.getConfig().readOnly){var o=Qx.toSlateNode(n,r.target),i=Qx.findPath(n,o);if(Nf.isVoid(n,o)||Nf.void(n,{at:i,voids:!0})){var a=Nf.range(n,i);md.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&eI(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&eI(n,r.target)&&null!=o&&!(Jx&&Kx&&o.files.length>0)){r.preventDefault();var i=n.selection,a=Qx.findEventRange(n,r);md.select(n,a),t.isDraggingInternally&&(i&&md.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},fI=1,dI=function(){function e(e){var t=this;this.id=fI++,this.$textArea=null,this.$progressBar=Mp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Mp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ev((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=Qx.findDocumentOrShadowRoot(t),a=i.activeElement,u=Qx.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,Ox.set(t,!0)):Ox.delete(t),!s)return md.deselect(t);var l=s.anchorNode,c=s.focusNode,f=JB(t,l)||QB(t,l),d=JB(t,c)||QB(t,c);if(f&&d){var p=Qx.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});md.select(t,p)}else md.deselect(t)}}(t,e)}),100);var n=Mp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Mp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Mp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,ZN((function(){var e=t.editorInstance,n=Qx.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=ax.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Lh(cI,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ev((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-Qx.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;GB(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Mp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),ZN((function(){tI(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function pI(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&pI(t)}function hI(){return Mp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function vI(){return Mp('<div class="w-e-bar-divider"></div>')}function gI(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=Wx?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}_A("match",(function(e,t,n){return[function(t){var n=EE(this),r=null==t?void 0:dw(t,e);return r?ow(r,t,n):new RegExp(t)[e](bC(n))},function(e){var r=nw(this),o=bC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return WA(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=WA(r,o));){var c=bC(u[0]);s[l]=c,""===c&&(r.lastIndex=LA(o,dS(r.lastIndex),a)),l++}return 0===l?null:s}]}));var yI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Mp(c);pI(d),f.append(d)}else f.text(a);gI(f,c,a,s,n),n&&c&&f.append(Mp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),ZN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),BI(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=BI(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=BI(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=BI(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),mI=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return rO(t,e),t.prototype.onButtonClick=function(){},t}(yI),bI=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=dx.get(e);null==t&&(t=new Set,dx.set(e,t)),t.add(this),px.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=px.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=px.get(this);e&&e.emit("modalOrPanelHide")}},e}(),EI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Mp('<div class="w-e-drop-panel"></div>'),n}return rO(t,e),t.prototype.genSelfElem=function(){return null},t}(bI),wI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=hI();o.$button.append(i)}return o}return rO(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=BI(this);if(null==this.dropPanel){var n=new EI(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(yI),SI=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Mp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return rO(t,e),t.prototype.genSelfElem=function(){var e=this,t=Mp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=px.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(bI);function CI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function DI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function AI(e,t){var n=Mp('<div class="button-container"></div>'),r=Mp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var OI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Mp("body"),o.modal=null,o.menu=n,o}return rO(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=BI(this),t=this.menu.getModalPositionNode(e);return Cf.isElement(t)?wB(e,t,"modal"):EB(e)},t.prototype.handleModal=function(){var e=BI(this),t=this.menu;if(null==this.modal){var n=new SI(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=BI(this),r=this.menu;if(null!=r.getModalContentElem){var o=Qx.getTextarea(n),i=Qx.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||SB(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(yI),xI=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Mp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return rO(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Mp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Mp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Mp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Mp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(bI),TI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),gI(f,s,i,c,n),this.$elem.append(f),this.menu=t,ZN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),BI(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=BI(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new xI(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=BI(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=BI(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=hI();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=BI(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),NI=function(){function e(e){this.$elem=Mp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Mp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Mp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Mp(n);pI(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=hI();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Mp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),kI=new WeakMap;function BI(e){var t=fx.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function II(e,t,n){void 0===n&&(n=!1);var r=kI.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new wI(e,t,n):a?new OI(e,t,n):new mI(e,t,n)}if("select"===o&&(r=new TI(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return kI.set(t,r),r}function FI(e,t){var n=e.selection;return null!=n&&!qf.isCollapsed(n)&&!Qx.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!ed.isText(t)}var PI=function(){function e(){var e=this;this.$elem=Mp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Zg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Cf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),ZN((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),Qx.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;ZN((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=vI();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=nT[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=II(e,r);this.hoverbarItems.push(a),fx.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Cf.isElement(e)){var r=wB(t,e,"bar");return n.css(r),void SB(t,n)}if(ed.isText(e))return r=EB(t),n.css(r),void SB(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return Qx.checkNodeType(t,o)},c=aO(Nf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=lx.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=FI),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=Qx.findPath(null,e),r=Qx.findPath(null,t);return Mf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function _I(e,t,n,r){if(mx.set(e,t),bx.set(e,n),Cf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return _I(t,n,e,r)})),Nf.isVoid(r,e)){var i=aO(_f.texts(e),1),a=aO(i[0],1)[0];mx.set(a,0),bx.set(a,e)}}}function RI(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{var e=r.map(jf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=yC.isSaving(t),c=yC.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Mf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Mf.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=Qx.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=Qx.getLeftLengthOfMaxLength(t);n<=0||n<_f.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var n=e[0];if(Qx.getLeftLengthOfMaxLength(t)<_f.string(n).length)return;o([n]);for(var r=1;r<e.length;r++)t.insertNode(e[r])}}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=Qx.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===Fx.TEXT_NODE?e+(t.textContent||""):n===Fx.ELEMENT_NODE?Vk.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=hB(t);if(r.on(e,n),"destroyed"===e&&gB(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),gB(t,o)}},t.once=function(e,n){hB(t).once(e,n)},t.off=function(e,n){hB(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=hB(t);o.emit.apply(o,uO([e],aO(n))),"destroyed"===e&&(yB(t).forEach((function(e){return o.off("destroyed",e)})),mB(t))},t}(function(e){var t=e;return t.select=function(e){md.select(t,e)},t.deselect=function(){var n=t.selection,r=Qx.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&md.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||md.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=xx.get(t);null!=e&&(t.focus(),md.select(t,e))},t.getSelectionPosition=function(){return EB(t)},t.getNodePosition=function(e){return wB(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=aO(qf.edges(e),2),r=n[0],o=n[1],i=aO(Nf.edges(t,[]),2),a=i[0],u=i[1];return!(!$f.equals(r,a)||!$f.equals(o,u))},t.selectAll=function(){var e=Nf.start(t,[]),n=Nf.end(t,[]);md.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=iO(Nf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=aO(p.value,2),v=h[0],g=h[1],y=Qx.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=iO(Nf.levels(t,{at:Mf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var E=aO(b.value,2);v=E[0],g=E[1],y=Qx.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var w=iO(Nf.levels(t,{at:Mf.common(Mf.parent(e.path),Mf.parent(e.newPath))})),S=w.next();!S.done;S=w.next()){var C=aO(S.value,2);v=C[0],g=C[1],y=Qx.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}}o(e);try{for(var D=iO(f),A=D.next();!A.done;A=D.next()){var O=aO(A.value,2);g=O[0],y=O[1],v=aO(Nf.node(t,g),1)[0],Dx.set(v,y)}}catch(e){l={error:e}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&qf.isCollapsed(e.selection)){var r=Nf.above(e,{match:function(t){return Nf.isBlock(e,t)},at:e.selection});if(r){var o=aO(r,2)[1],a=Nf.range(e,o,e.selection.anchor),u=function(e,t){var n=Nf.range(e,qf.end(t)),r=Array.from(Nf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(tk(e,Nf.range(e,r[o]),n))return Nf.range(e,r[o],n);if(r.length<2)return Nf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)tk(e,Nf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Nf.range(e,r[i],n)}(t,a);qf.isCollapsed(u)||md.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&xx.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return JN(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return _f.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Nf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Nf.nodes(t,{at:[],universal:!0});try{for(var u=iO(a),s=u.next();!s.done;s=u.next()){var l=aO(s.value,1)[0];if(Cf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=QN(Qx.findKey(t,l).id);i.push(oO(oO({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Cf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(ed.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){md.delete(t,{at:{anchor:Nf.start(t,[]),focus:Nf.end(t,[])}}),0===t.children.length&&md.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return Qx.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===Fx.TEXT_NODE||t===Fx.ELEMENT_NODE&&!Vk.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;Qx.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==Fx.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(nk.includes(r.toLowerCase()))s=!0;else for(var l in ik)if(a.matches(l)){s=!0;break}if(s){var c=Rk(Mp(a),t);return Array.isArray(c)?(c.forEach((function(e){return Gk(t,e)})),u++):(Gk(t,c),u++),void(Qx.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;Qx.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&Qx.isEmptyPath(t,a)&&md.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=jk(t,e);if(md.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Nf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in nT)e.push(t);return e},t.getConfig=function(){var e=hx.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=Wk(Gc());return t.id="wangEditor-"+eT++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(Qx.toDOMNode(t,t).focus({preventScroll:!0}),Ox.set(t,!0),e){var n=Nf.end(t,[]);md.select(t,n)}else{var r=xx.get(t);r?md.select(t,r):md.select(t,Nf.start(t,[]))}},t.isFocused=function(){return!!Ox.get(t)},t.blur=function(){Qx.toDOMNode(t,t).blur(),md.deselect(t),Ox.set(t,!1)},t.updateView=function(){Qx.getTextarea(t).changeViewState();var e=Qx.getToolbar(t);e&&e.changeToolbarState();var n=Qx.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=Qx.getTextarea(t);e.destroy(),ix.delete(t),ax.delete(e);var n=Qx.getToolbar(t);n&&(n.destroy(),sx.delete(t),ux.delete(n));var r=Qx.getHoverbar(t);r&&(r.destroy(),cx.delete(t),lx.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Mp("#"+e);if(0!==r.length){var o=r[0];if(!Qx.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=Qx.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||Qx.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=dx.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return Qx.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=Qx.getToolbar(t);n&&(e=n.$box);var r=Qx.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=Qx.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return Qx.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return Lk(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Jg(tT),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Lh(t,(function(e,t){n[t]=oO(oO({},e),o[t]||{})})),delete e.MENU_CONF,oO({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);hx.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=jk(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),Qx.normalizeContent(l),n){var p=new dI(n);ix.set(l,p),ax.set(p,l),p.changeViewState(),ZN((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new PI,lx.set(h,l),cx.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return _I(e,t,l,l)}));var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),g&&l.on("destroyed",(function(){return g(l)})),ZN((function(){return l.emit("created")})),l}var LI=iA("splice"),jI=lE.TypeError,MI=Math.max,zI=Math.min;cC({target:"Array",proto:!0,forced:!LI},{splice:function(e,t){var n,r,o,i,a,u,s=SE(this),l=pS(s),c=$S(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=zI(MI(cS(t),0),l-c)),l+n-r>9007199254740991)throw jI("Maximum allowed length exceeded");for(o=AS(s,r),i=0;i<r;i++)(a=c+i)in s&&tD(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var HI=function(){function e(e,t){var n=this;this.$toolbar=Mp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Mp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),ZN((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=Jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=vI();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new NI(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof NI,o=this.menus,i=o[e];if(null==i){var a=nT[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=n.getMenuConfig(e);u&&void 0!==u.iconSvg&&(i.iconSvg=u.iconSvg);var s=II(e,i,r);this.toolbarItems.push(s),fx.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=ux.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();var UI=$w.EXISTS,$I=bw.f,VI=Function.prototype,GI=mE(VI.toString),WI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,qI=mE(WI.exec);function KI(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,E=void 0===b?function(e){return e}:b,w=e.onSuccess,S=void 0===w?function(e,t){}:w,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,A=e.onProgress,O=void 0===A?function(e){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var x=n;d&&(x=function(e,t){var n=aO(e.split("#"),2),r=n[0],o=n[1],i=[];Lh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(x,c));var T=new Im({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(rE,{endpoint:x,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return T.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{S(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}T.removeFile(e.id)})),T.on("progress",(function(e){e<1||O(e)})),T.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T}function YI(e){return YI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YI(e)}function XI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){XI(e,t,n[t])}))}return e}function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eF(e,t,n){return t&&QI(e.prototype,t),n&&QI(e,n),e}function tF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tF(e)}function rF(e){return rF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rF(e)}function oF(e,t){return oF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oF(e,t)}function iF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oF(e,t)}KE&&!UI&&$I(VI,"name",{configurable:!0,get:function(){try{return qI(WI,GI(this))[1]}catch(e){return""}}});var aF={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},uF=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};JI(this,e),this.init(t,n)}return eF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||aF,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,ZI({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),sF=function(){function e(){JI(this,e),this.observers={}}return eF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function lF(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function cF(e){return null==e?"":""+e}function fF(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function dF(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function pF(e,t,n){var r=dF(e,t,Object);r.obj[r.k]=n}function hF(e,t){var n=dF(e,t),r=n.obj,o=n.k;if(r)return r[o]}function vF(e,t,n){var r=hF(e,n);return void 0!==r?r:hF(t,n)}function gF(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):gF(e[r],t[r],n):e[r]=t[r]);return e}function yF(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function bF(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return mF[e]})):e}var EF="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function wF(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?wF(s,l,n):void 0}o=o[r[i]]}return o}}var SF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return JI(this,t),n=nF(this,rF(t).call(this)),EF&&sF.call(tF(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return iF(t,sF),eF(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=hF(this.data,a);return u||!i||"string"!=typeof n?u:wF(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),pF(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=hF(this.data,a)||{};r?gF(u,n,o):u=ZI({},u,n),pF(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ZI({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),CF={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},DF={},AF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return JI(this,t),n=nF(this,rF(t).call(this)),EF&&sF.call(tF(n)),fF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,tF(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=uF.create("translator"),n}return iF(t,sF),eF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==YI(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(E&&h&&w&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,ZI({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var S="[object Array]"===y,C=S?[]:{},D=S?g:v;for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)){var O="".concat(D).concat(i).concat(A);C[A]=this.translate(O,ZI({},n,{joinArrays:!1,ns:s})),C[A]===O&&(C[A]=h[A])}h=C}}else if(E&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var x=!1,T=!1,N=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),B=N?this.pluralResolver.getSuffix(c,n.count):"",I=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(x=!0,h=I),this.isValidLookup(h)||(T=!0,h=u);var F=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=F&&T?void 0:h,_=k&&I!==h&&this.options.updateMissing;if(T||x||_){if(this.logger.log(_?"updateKey":"missingKey",c,l,u,_?I:h),i){var R=this.resolve(u,ZI({},n,{keySeparator:!1}));R&&R.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var M=0;M<j.length;M++)L.push(j[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,_?r:P,_,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,_?r:P,_,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||I)}))})):z(L,u,I))}h=this.extendTranslation(h,e,n,p,r),T&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(T||x)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ZI({},n,{interpolation:ZI({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=ZI({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=CF.handle(d,e,t,this.options&&this.options.postProcessPassResolved?ZI({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!DF["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(DF["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function OF(e){return e.charAt(0).toUpperCase()+e.slice(1)}var xF=function(){function e(t){JI(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uF.create("languageUtils")}return eF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OF(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=OF(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=OF(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),TF=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],NF={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function kF(){var e={};return TF.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:NF[t.fc]}}))})),e}var BF=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};JI(this,e),this.languageUtils=t,this.options=n,this.logger=uF.create("pluralResolver"),this.rules=kF()}return eF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),IF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};JI(this,e),this.logger=uF.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return eF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:bF,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?yF(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?yF(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?yF(t.nestingPrefix):t.nestingPrefixEscaped||yF("$t("),this.nestingSuffix=t.nestingSuffix?yF(t.nestingSuffix):t.nestingSuffixEscaped||yF(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=vF(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,ZI({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(vF(t,s,a),l,n,ZI({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=cF(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ZI({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ZI({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=cF(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,ZI({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),FF=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return JI(this,t),o=nF(this,rF(t).call(this)),EF&&sF.call(tF(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=uF.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return iF(t,sF),eF(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=dF(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,ZI({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function PF(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===YI(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===YI(e[2])||"object"===YI(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function _F(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function RF(){}var LF=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(JI(this,t),e=nF(this,rF(t).call(this)),EF&&sF.call(tF(e)),e.options=_F(n),e.services={},e.logger=uF,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),nF(e,tF(e));setTimeout((function(){e.init(n,r)}),0)}return e}return iF(t,sF),eF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ZI({},PF(),this.options,_F(t)),this.format=this.options.interpolation.format,n||(n=RF),!this.options.isClone){this.modules.logger?uF.init(r(this.modules.logger),this.options):uF.init(null,this.options);var o=new xF(this.options);this.store=new SF(this.options.resources,this.options);var i=this.services;i.logger=uF,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new BF(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new IF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new FF(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new AF(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=lF(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:RF,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=lF();return e||(e=this.languages),t||(t=this.options.ns),n||(n=RF),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&CF.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=lF();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==YI(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=ZI({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=lF();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lF();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:RF,o=ZI({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=ZI({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new AF(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),jF=new LF;function MF(e,t){jF.addResourceBundle(e,"translation",t,!0,!0)}function zF(e){jF.changeLanguage(e)}function HF(e){return jF.getResourceBundle(e,"translation")}jF.init({lng:"zh-CN",resources:{}});var UF=jF.t.bind(jF);MF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),MF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var $F=ea?{}.toString:function(){return"[object "+oa(this)+"]"};ea||wi(Object.prototype,"toString",$F,{unsafe:!0});var VF=Array.isArray||function(e){return"Array"==Ur(e)},GF=function(){},WF=[],qF=Jr("Reflect","construct"),KF=/^\s*(?:class|function)\b/,YF=Mr(KF.exec),XF=!KF.exec(GF),ZF=function(e){if(!Yr(e))return!1;try{return qF(GF,WF,e),!0}catch(e){return!1}},JF=!qF||Or((function(){var e;return ZF(ZF.call)||!ZF(Object)||!ZF((function(){e=!0}))||e}))?function(e){if(!Yr(e))return!1;switch(oa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XF||!!YF(KF,ri(e))}:ZF,QF=Fo("species"),eP=Ar.Array,tP=function(e,t){return new(function(e){var t;return VF(e)&&(t=e.constructor,(JF(t)&&(t===eP||VF(t.prototype))||Xr(t)&&null===(t=t[QF]))&&(t=void 0)),void 0===t?eP:t}(e))(0===t?0:t)},nP=Mr([].push),rP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=So(s),v=Gr(h),g=yu(l,c),y=ki(v),m=0,b=f||tP,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nP(E,d)}else switch(e){case 4:return!1;case 7:nP(E,d)}return i?-1:r||o?o:E}},oP={forEach:rP(0),map:rP(1),filter:rP(2),some:rP(3),every:rP(4),find:rP(5),findIndex:rP(6),filterReject:rP(7)}.forEach,iP=function(e,t){var n=[][e];return!!n&&Or((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),aP=iP?[].forEach:function(e){return oP(this,e,arguments.length>1?arguments[1]:void 0)},uP=function(e){if(e&&e.forEach!==aP)try{Jo(e,"forEach",aP)}catch(t){e.forEach=aP}};for(var sP in fs)fs[sP]&&uP(Ar[sP]&&Ar[sP].prototype);uP(hs),MF("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),MF("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var lP={type:"paragraph",renderElem:function(e,t,n){return Fv("p",null,t)}},cP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fP(e){var t={exports:{}};return e(t,t.exports),t.exports}var dP,pP,hP=function(e){return e&&e.Math==Math&&e},vP=hP("object"==typeof globalThis&&globalThis)||hP("object"==typeof window&&window)||hP("object"==typeof self&&self)||hP("object"==typeof cP&&cP)||function(){return this}()||Function("return this")(),gP=function(e){try{return!!e()}catch(e){return!0}},yP=!gP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mP=Function.prototype.call,bP=mP.bind?mP.bind(mP):function(){return mP.apply(mP,arguments)},EP={}.propertyIsEnumerable,wP=Object.getOwnPropertyDescriptor,SP=wP&&!EP.call({1:2},1)?function(e){var t=wP(this,e);return!!t&&t.enumerable}:EP,CP={f:SP},DP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},AP=Function.prototype,OP=AP.bind,xP=AP.call,TP=OP&&OP.bind(xP),NP=OP?function(e){return e&&TP(xP,e)}:function(e){return e&&function(){return xP.apply(e,arguments)}},kP=NP({}.toString),BP=NP("".slice),IP=function(e){return BP(kP(e),8,-1)},FP=vP.Object,PP=NP("".split),_P=gP((function(){return!FP("z").propertyIsEnumerable(0)}))?function(e){return"String"==IP(e)?PP(e,""):FP(e)}:FP,RP=vP.TypeError,LP=function(e){if(null==e)throw RP("Can't call method on "+e);return e},jP=function(e){return _P(LP(e))},MP=function(e){return"function"==typeof e},zP=function(e){return"object"==typeof e?null!==e:MP(e)},HP=function(e){return MP(e)?e:void 0},UP=function(e,t){return arguments.length<2?HP(vP[e]):vP[e]&&vP[e][t]},$P=NP({}.isPrototypeOf),VP=UP("navigator","userAgent")||"",GP=vP.process,WP=vP.Deno,qP=GP&&GP.versions||WP&&WP.version,KP=qP&&qP.v8;KP&&(pP=(dP=KP.split("."))[0]>0&&dP[0]<4?1:+(dP[0]+dP[1])),!pP&&VP&&(!(dP=VP.match(/Edge\/(\d+)/))||dP[1]>=74)&&(dP=VP.match(/Chrome\/(\d+)/))&&(pP=+dP[1]);var YP=pP,XP=!!Object.getOwnPropertySymbols&&!gP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YP&&YP<41})),ZP=XP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,JP=vP.Object,QP=ZP?function(e){return"symbol"==typeof e}:function(e){var t=UP("Symbol");return MP(t)&&$P(t.prototype,JP(e))},e_=vP.String,t_=function(e){try{return e_(e)}catch(e){return"Object"}},n_=vP.TypeError,r_=function(e){if(MP(e))return e;throw n_(t_(e)+" is not a function")},o_=function(e,t){var n=e[t];return null==n?void 0:r_(n)},i_=vP.TypeError,a_=Object.defineProperty,u_=function(e,t){try{a_(vP,e,{value:t,configurable:!0,writable:!0})}catch(n){vP[e]=t}return t},s_=vP["__core-js_shared__"]||u_("__core-js_shared__",{}),l_=fP((function(e){(e.exports=function(e,t){return s_[e]||(s_[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),c_=vP.Object,f_=function(e){return c_(LP(e))},d_=NP({}.hasOwnProperty),p_=Object.hasOwn||function(e,t){return d_(f_(e),t)},h_=0,v_=Math.random(),g_=NP(1..toString),y_=function(e){return"Symbol("+(void 0===e?"":e)+")_"+g_(++h_+v_,36)},m_=l_("wks"),b_=vP.Symbol,E_=b_&&b_.for,w_=ZP?b_:b_&&b_.withoutSetter||y_,S_=function(e){if(!p_(m_,e)||!XP&&"string"!=typeof m_[e]){var t="Symbol."+e;XP&&p_(b_,e)?m_[e]=b_[e]:m_[e]=ZP&&E_?E_(t):w_(t)}return m_[e]},C_=vP.TypeError,D_=S_("toPrimitive"),A_=function(e){var t=function(e,t){if(!zP(e)||QP(e))return e;var n,r=o_(e,D_);if(r){if(void 0===t&&(t="default"),n=bP(r,e,t),!zP(n)||QP(n))return n;throw C_("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&MP(n=e.toString)&&!zP(r=bP(n,e)))return r;if(MP(n=e.valueOf)&&!zP(r=bP(n,e)))return r;if("string"!==t&&MP(n=e.toString)&&!zP(r=bP(n,e)))return r;throw i_("Can't convert object to primitive value")}(e,t)}(e,"string");return QP(t)?t:t+""},O_=vP.document,x_=zP(O_)&&zP(O_.createElement),T_=function(e){return x_?O_.createElement(e):{}},N_=!yP&&!gP((function(){return 7!=Object.defineProperty(T_("div"),"a",{get:function(){return 7}}).a})),k_=Object.getOwnPropertyDescriptor,B_={f:yP?k_:function(e,t){if(e=jP(e),t=A_(t),N_)try{return k_(e,t)}catch(e){}if(p_(e,t))return DP(!bP(CP.f,e,t),e[t])}},I_=vP.String,F_=vP.TypeError,P_=function(e){if(zP(e))return e;throw F_(I_(e)+" is not an object")},__=vP.TypeError,R_=Object.defineProperty,L_={f:yP?R_:function(e,t,n){if(P_(e),t=A_(t),P_(n),N_)try{return R_(e,t,n)}catch(e){}if("get"in n||"set"in n)throw __("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},j_=yP?function(e,t,n){return L_.f(e,t,DP(1,n))}:function(e,t,n){return e[t]=n,e},M_=NP(Function.toString);MP(s_.inspectSource)||(s_.inspectSource=function(e){return M_(e)});var z_,H_,U_,$_=s_.inspectSource,V_=vP.WeakMap,G_=MP(V_)&&/native code/.test($_(V_)),W_=l_("keys"),q_=function(e){return W_[e]||(W_[e]=y_(e))},K_={},Y_=vP.TypeError,X_=vP.WeakMap;if(G_||s_.state){var Z_=s_.state||(s_.state=new X_),J_=NP(Z_.get),Q_=NP(Z_.has),eR=NP(Z_.set);z_=function(e,t){if(Q_(Z_,e))throw new Y_("Object already initialized");return t.facade=e,eR(Z_,e,t),t},H_=function(e){return J_(Z_,e)||{}},U_=function(e){return Q_(Z_,e)}}else{var tR=q_("state");K_[tR]=!0,z_=function(e,t){if(p_(e,tR))throw new Y_("Object already initialized");return t.facade=e,j_(e,tR,t),t},H_=function(e){return p_(e,tR)?e[tR]:{}},U_=function(e){return p_(e,tR)}}var nR={set:z_,get:H_,has:U_,enforce:function(e){return U_(e)?H_(e):z_(e,{})},getterFor:function(e){return function(t){var n;if(!zP(t)||(n=H_(t)).type!==e)throw Y_("Incompatible receiver, "+e+" required");return n}}},rR=Function.prototype,oR=yP&&Object.getOwnPropertyDescriptor,iR=p_(rR,"name"),aR={EXISTS:iR,PROPER:iR&&"something"===function(){}.name,CONFIGURABLE:iR&&(!yP||yP&&oR(rR,"name").configurable)},uR=fP((function(e){var t=aR.CONFIGURABLE,n=nR.get,r=nR.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;MP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!p_(i,"name")||t&&i.name!==f)&&j_(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==vP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:j_(e,n,i)):l?e[n]=i:u_(n,i)})(Function.prototype,"toString",(function(){return MP(this)&&n(this).source||$_(this)}))})),sR=Math.ceil,lR=Math.floor,cR=function(e){var t=+e;return t!=t||0===t?0:(t>0?lR:sR)(t)},fR=Math.max,dR=Math.min,pR=function(e,t){var n=cR(e);return n<0?fR(n+t,0):dR(n,t)},hR=Math.min,vR=function(e){return e>0?hR(cR(e),9007199254740991):0},gR=function(e){return vR(e.length)},yR=function(e){return function(t,n,r){var o,i=jP(t),a=gR(i),u=pR(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},mR={includes:yR(!0),indexOf:yR(!1)},bR=mR.indexOf,ER=NP([].push),wR=function(e,t){var n,r=jP(e),o=0,i=[];for(n in r)!p_(K_,n)&&p_(r,n)&&ER(i,n);for(;t.length>o;)p_(r,n=t[o++])&&(~bR(i,n)||ER(i,n));return i},SR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],CR=SR.concat("length","prototype"),DR={f:Object.getOwnPropertyNames||function(e){return wR(e,CR)}},AR={f:Object.getOwnPropertySymbols},OR=NP([].concat),xR=UP("Reflect","ownKeys")||function(e){var t=DR.f(P_(e)),n=AR.f;return n?OR(t,n(e)):t},TR=function(e,t){for(var n=xR(t),r=L_.f,o=B_.f,i=0;i<n.length;i++){var a=n[i];p_(e,a)||r(e,a,o(t,a))}},NR=/#|\.prototype\./,kR=function(e,t){var n=IR[BR(e)];return n==PR||n!=FR&&(MP(t)?gP(t):!!t)},BR=kR.normalize=function(e){return String(e).replace(NR,".").toLowerCase()},IR=kR.data={},FR=kR.NATIVE="N",PR=kR.POLYFILL="P",_R=kR,RR=B_.f,LR=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?vP:l?vP[u]||u_(u,{}):(vP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=RR(n,r))&&a.value:n[r],!_R(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;TR(i,o)}(e.sham||o&&o.sham)&&j_(i,"sham",!0),uR(n,r,i,e)}},jR=NP(NP.bind),MR=Array.isArray||function(e){return"Array"==IP(e)},zR={};zR[S_("toStringTag")]="z";var HR="[object z]"===String(zR),UR=S_("toStringTag"),$R=vP.Object,VR="Arguments"==IP(function(){return arguments}()),GR=HR?IP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$R(e),UR))?n:VR?IP(t):"Object"==(r=IP(t))&&MP(t.callee)?"Arguments":r},WR=function(){},qR=[],KR=UP("Reflect","construct"),YR=/^\s*(?:class|function)\b/,XR=NP(YR.exec),ZR=!YR.exec(WR),JR=function(e){if(!MP(e))return!1;try{return KR(WR,qR,e),!0}catch(e){return!1}},QR=!KR||gP((function(){var e;return JR(JR.call)||!JR(Object)||!JR((function(){e=!0}))||e}))?function(e){if(!MP(e))return!1;switch(GR(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return ZR||!!XR(YR,$_(e))}:JR,eL=S_("species"),tL=vP.Array,nL=function(e,t){return new(function(e){var t;return MR(e)&&(t=e.constructor,(QR(t)&&(t===tL||MR(t.prototype))||zP(t)&&null===(t=t[eL]))&&(t=void 0)),void 0===t?tL:t}(e))(0===t?0:t)},rL=NP([].push),oL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=f_(s),v=_P(h),g=function(e,t){return r_(e),void 0===t?e:jR?jR(e,t):function(){return e.apply(t,arguments)}}(l,c),y=gR(v),m=0,b=f||nL,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:rL(E,d)}else switch(e){case 4:return!1;case 7:rL(E,d)}return i?-1:r||o?o:E}},iL={forEach:oL(0),map:oL(1),filter:oL(2),some:oL(3),every:oL(4),find:oL(5),findIndex:oL(6),filterReject:oL(7)},aL=S_("species"),uL=function(e){return YP>=51||!gP((function(){var t=[];return(t.constructor={})[aL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sL=iL.filter;LR({target:"Array",proto:!0,forced:!uL("filter")},{filter:function(e){return sL(this,e,arguments.length>1?arguments[1]:void 0)}});var lL=HR?{}.toString:function(){return"[object "+GR(this)+"]"};HR||uR(Object.prototype,"toString",lL,{unsafe:!0});var cL,fL=vP.String,dL=function(e){if("Symbol"===GR(e))throw TypeError("Cannot convert a Symbol value to a string");return fL(e)},pL=function(){var e=P_(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hL=vP.RegExp,vL=gP((function(){var e=hL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),gL=vL||gP((function(){return!hL("a","y").sticky})),yL={BROKEN_CARET:vL||gP((function(){var e=hL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:gL,UNSUPPORTED_Y:vL},mL=Object.keys||function(e){return wR(e,SR)},bL=yP?Object.defineProperties:function(e,t){P_(e);for(var n,r=jP(t),o=mL(t),i=o.length,a=0;i>a;)L_.f(e,n=o[a++],r[n]);return e},EL=UP("document","documentElement"),wL=q_("IE_PROTO"),SL=function(){},CL=function(e){return"<script>"+e+"<\/script>"},DL=function(e){e.write(CL("")),e.close();var t=e.parentWindow.Object;return e=null,t},AL=function(){try{cL=new ActiveXObject("htmlfile")}catch(e){}var e,t;AL="undefined"!=typeof document?document.domain&&cL?DL(cL):((t=T_("iframe")).style.display="none",EL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(CL("document.F=Object")),e.close(),e.F):DL(cL);for(var n=SR.length;n--;)delete AL.prototype[SR[n]];return AL()};K_[wL]=!0;var OL,xL,TL=Object.create||function(e,t){var n;return null!==e?(SL.prototype=P_(e),n=new SL,SL.prototype=null,n[wL]=e):n=AL(),void 0===t?n:bL(n,t)},NL=vP.RegExp,kL=gP((function(){var e=NL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),BL=vP.RegExp,IL=gP((function(){var e=BL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),FL=nR.get,PL=l_("native-string-replace",String.prototype.replace),_L=RegExp.prototype.exec,RL=_L,LL=NP("".charAt),jL=NP("".indexOf),ML=NP("".replace),zL=NP("".slice),HL=(xL=/b*/g,bP(_L,OL=/a/,"a"),bP(_L,xL,"a"),0!==OL.lastIndex||0!==xL.lastIndex),UL=yL.BROKEN_CARET,$L=void 0!==/()??/.exec("")[1];(HL||$L||UL||kL||IL)&&(RL=function(e){var t,n,r,o,i,a,u,s=this,l=FL(s),c=dL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=bP(RL,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=UL&&s.sticky,h=bP(pL,s),v=s.source,g=0,y=c;if(p&&(h=ML(h,"y",""),-1===jL(h,"g")&&(h+="g"),y=zL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==LL(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),$L&&(n=new RegExp("^"+v+"$(?!\\s)",h)),HL&&(r=s.lastIndex),o=bP(_L,p?n:s,y),p?o?(o.input=zL(o.input,g),o[0]=zL(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:HL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$L&&o&&o.length>1&&bP(PL,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=TL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var VL=RL;LR({target:"RegExp",proto:!0,forced:/./.exec!==VL},{exec:VL});var GL=Function.prototype,WL=GL.apply,qL=GL.bind,KL=GL.call,YL="object"==typeof Reflect&&Reflect.apply||(qL?KL.bind(WL):function(){return KL.apply(WL,arguments)}),XL=S_("species"),ZL=RegExp.prototype,JL=function(e,t,n,r){var o=S_(e),i=!gP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[XL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=NP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=NP(e),s=t.exec;return s===VL||s===ZL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));uR(String.prototype,e,s[0]),uR(ZL,o,s[1])}r&&j_(ZL[o],"sham",!0)},QL=NP("".charAt),ej=NP("".charCodeAt),tj=NP("".slice),nj=function(e){return function(t,n){var r,o,i=dL(LP(t)),a=cR(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ej(i,a))<55296||r>56319||a+1===u||(o=ej(i,a+1))<56320||o>57343?e?QL(i,a):r:e?tj(i,a,a+2):o-56320+(r-55296<<10)+65536}},rj=(nj(!1),nj(!0)),oj=function(e,t,n){return t+(n?rj(e,t).length:1)},ij=Math.floor,aj=NP("".charAt),uj=NP("".replace),sj=NP("".slice),lj=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cj=/\$([$&'`]|\d{1,2})/g,fj=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=cj;return void 0!==o&&(o=f_(o),s=lj),uj(i,s,(function(i,s){var l;switch(aj(s,0)){case"$":return"$";case"&":return e;case"`":return sj(t,0,n);case"'":return sj(t,a);case"<":l=o[sj(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=ij(c/10);return 0===f?i:f<=u?void 0===r[f-1]?aj(s,1):r[f-1]+aj(s,1):i}l=r[c-1]}return void 0===l?"":l}))},dj=vP.TypeError,pj=function(e,t){var n=e.exec;if(MP(n)){var r=bP(n,e,t);return null!==r&&P_(r),r}if("RegExp"===IP(e))return bP(VL,e,t);throw dj("RegExp#exec called on incompatible receiver")},hj=S_("replace"),vj=Math.max,gj=Math.min,yj=NP([].concat),mj=NP([].push),bj=NP("".indexOf),Ej=NP("".slice),wj="$0"==="a".replace(/./,"$0"),Sj=!!/./[hj]&&""===/./[hj]("a","$0");JL("replace",(function(e,t,n){var r=Sj?"$":"$0";return[function(e,n){var r=LP(this),o=null==e?void 0:o_(e,hj);return o?bP(o,e,r,n):bP(t,dL(r),e,n)},function(e,o){var i=P_(this),a=dL(e);if("string"==typeof o&&-1===bj(o,r)&&-1===bj(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=MP(o);s||(o=dL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=pj(i,a);if(null===d)break;if(mj(f,d),!l)break;""===dL(d[0])&&(i.lastIndex=oj(a,vR(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=dL((d=f[g])[0]),m=vj(gj(cR(d.index),a.length),0),b=[],E=1;E<d.length;E++)mj(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=yj([y],b,m,a);void 0!==w&&mj(S,w);var C=dL(YL(o,void 0,S))}else C=fj(y,a,m,b,w,o);m>=v&&(h+=Ej(a,v,m)+C,v=m+y.length)}return h+Ej(a,v)}]}),!!gP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!wj||Sj);var Cj=S_("unscopables"),Dj=Array.prototype;null==Dj[Cj]&&L_.f(Dj,Cj,{configurable:!0,value:TL(null)});var Aj=function(e){Dj[Cj][e]=!0},Oj=iL.find,xj=!0;"find"in[]&&Array(1).find((function(){xj=!1})),LR({target:"Array",proto:!0,forced:xj},{find:function(e){return Oj(this,e,arguments.length>1?arguments[1]:void 0)}}),Aj("find");var Tj=S_("match"),Nj=function(e){var t;return zP(e)&&(void 0!==(t=e[Tj])?!!t:"RegExp"==IP(e))},kj=vP.TypeError,Bj=S_("species"),Ij=function(e,t,n){var r=A_(t);r in e?L_.f(e,r,DP(0,n)):e[r]=n},Fj=vP.Array,Pj=Math.max,_j=function(e,t,n){for(var r=gR(e),o=pR(t,r),i=pR(void 0===n?r:n,r),a=Fj(Pj(i-o,0)),u=0;o<i;o++,u++)Ij(a,u,e[o]);return a.length=u,a},Rj=yL.UNSUPPORTED_Y,Lj=Math.min,jj=[].push,Mj=NP(/./.exec),zj=NP(jj),Hj=NP("".slice);JL("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=dL(LP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Nj(e))return bP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=bP(VL,f,r))&&!((a=f.lastIndex)>c&&(zj(s,Hj(r,c,i.index)),i.length>1&&i.index<r.length&&YL(jj,s,_j(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&Mj(f,"")||zj(s,""):zj(s,Hj(r,c)),s.length>o?_j(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:bP(t,this,e,n)}:t,[function(t,n){var o=LP(this),i=null==t?void 0:o_(t,e);return i?bP(i,t,o,n):bP(r,dL(o),t,n)},function(e,o){var i=P_(this),a=dL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=P_(e).constructor;return void 0===r||null==(n=P_(r)[Bj])?t:function(e){if(QR(e))return e;throw kj(t_(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Rj?"g":"y"),f=new s(Rj?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===pj(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Rj?0:h;var g,y=pj(f,Rj?Hj(a,h):a);if(null===y||(g=Lj(vR(f.lastIndex+(Rj?h:0)),a.length))===p)h=oj(a,h,l);else{if(zj(v,Hj(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(zj(v,y[m]),v.length===d)return v;h=p=g}}return zj(v,Hj(a,p)),v}]}),!!gP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Rj);var Uj="\t\n\v\f\r \u2028\u2029\ufeff",$j=NP("".replace),Vj="["+Uj+"]",Gj=RegExp("^"+Vj+Vj+"*"),Wj=RegExp(Vj+Vj+"*$"),qj=function(e){return function(t){var n=dL(LP(t));return 1&e&&(n=$j(n,Gj,"")),2&e&&(n=$j(n,Wj,"")),n}},Kj={start:qj(1),end:qj(2),trim:qj(3)},Yj=aR.PROPER,Xj=Kj.trim;function Zj(e){return 0===Mp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function Jj(e){return 0===e.length?"":e[0].outerHTML}function Qj(e){return e.length?e[0].tagName.toLowerCase():""}function eM(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}LR({target:"String",proto:!0,forced:("trim",gP((function(){return!!Uj.trim()||"
"!=="
".trim()||Yj&&"trim"!==Uj.trim.name})))},{trim:function(){return Xj(this)}}),LR({global:!0},{globalThis:vP}),eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),uh&&(Mp.fn.prepend=uh),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),Kp&&(Mp.fn.off=Kp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),lh&&(Mp.fn.parents=lh),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),nh&&(Mp.fn.filter=nh),ph&&(Mp.fn.empty=ph);var tM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},nM=function(e,t){return nM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nM(e,t)
|
|
40
|
-
/*! *****************************************************************************
|
|
41
|
-
Copyright (c) Microsoft Corporation.
|
|
42
|
-
|
|
43
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
44
|
-
purpose with or without fee is hereby granted.
|
|
45
|
-
|
|
46
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
47
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
48
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
49
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
50
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
51
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
52
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
53
|
-
***************************************************************************** */};function rM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oM=function(){return oM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oM.apply(this,arguments)};function iM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function aM(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function uM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lM(e){var t=sM(Nf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Cf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==_f.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!ed.isText(o[0])&&(md.setNodes(e,{type:"paragraph"}),!0)}var cM={renderElems:[lP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[tM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){lM(r)||t(e)},r.deleteForward=function(e){lM(r)||n(e)},r}},fM=/"/g,dM=NP("".replace),pM=function(e,t,n,r){var o=dL(LP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+dM(dL(r),fM,""")+'"'),i+">"+o+"</"+t+">"},hM=function(e){return gP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function vM(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function gM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}LR({target:"String",proto:!0,forced:hM("bold")},{bold:function(){return pM(this,"b","","")}}),LR({target:"String",proto:!0,forced:hM("italics")},{italics:function(){return pM(this,"i","","")}}),LR({target:"String",proto:!0,forced:hM("sub")},{sub:function(){return pM(this,"sub","","")}}),LR({target:"String",proto:!0,forced:hM("sup")},{sup:function(){return pM(this,"sup","","")}});var yM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mM=T_("span").classList,bM=mM&&mM.constructor&&mM.constructor.prototype,EM=bM===Object.prototype?void 0:bM,wM=function(e,t){var n=[][e];return!!n&&gP((function(){n.call(null,t||function(){throw 1},1)}))},SM=iL.forEach,CM=wM("forEach")?[].forEach:function(e){return SM(this,e,arguments.length>1?arguments[1]:void 0)},DM=function(e){if(e&&e.forEach!==CM)try{j_(e,"forEach",CM)}catch(t){e.forEach=CM}};for(var AM in yM)yM[AM]&&DM(vP[AM]&&vP[AM].prototype);function OM(e,t){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===Qx.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function xM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Nf.removeMark(e,t)}))}DM(EM),LR({target:"Object",stat:!0,forced:gP((function(){mL(1)}))},{keys:function(e){return mL(f_(e))}});var TM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n?n[t]:!!sM(Nf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return OM(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),NM='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',kM='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',BM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',IM='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',FM='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',PM='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',_M='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',RM='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',LM='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',MM='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',HM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',UM='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',$M='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',VM='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',GM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',WM='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',qM='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=UF("textStyle.bold"),t.iconSvg=NM,t.hotkey="mod+b",t}return rM(t,e),t}(TM),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=UF("textStyle.code"),t.iconSvg=FM,t.hotkey="mod+e",t}return rM(t,e),t}(TM),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=UF("textStyle.italic"),t.iconSvg=BM,t.hotkey="mod+i",t}return rM(t,e),t}(TM),ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=UF("textStyle.through"),t.iconSvg=IM,t.hotkey="mod+shift+x",t}return rM(t,e),t}(TM),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=UF("textStyle.underline"),t.iconSvg=kM,t.hotkey="mod+u",t}return rM(t,e),t}(TM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=UF("textStyle.sub"),t.iconSvg=qM,t.hotkey="",t}return rM(t,e),t}(TM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=UF("textStyle.sup"),t.iconSvg=WM,t.hotkey="",t}return rM(t,e),t}(TM),tz=function(){function e(){this.title=UF("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return OM(e)},e.prototype.exec=function(e,t){var n,r,o=Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0});try{for(var i=uM(o),a=i.next();!a.done;a=i.next())xM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),nz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Fv("strong",null,c)),a&&(c=Fv("code",null,c)),o&&(c=Fv("em",null,c)),i&&(c=Fv("u",null,c)),u&&(c=Fv("s",null,c)),s&&(c=Fv("sub",null,c)),l&&(c=Fv("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new KM}},{key:"underline",factory:function(){return new JM}},{key:"italic",factory:function(){return new XM}},{key:"through",factory:function(){return new ZM}},{key:"code",factory:function(){return new YM}},{key:"sub",factory:function(){return new QM}},{key:"sup",factory:function(){return new ez}},{key:"clearStyle",factory:function(){return new tz}}],styleToHtml:function(e,t){if(!ed.isText(e))return t;if(Zj(t))return vM(e,t);var n=Mp(t);if("br"===Qj(n))return vM(e,"<br>");var r=n.html();return r=vM(e,r),n.html(r),Jj(n)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t;return gM(r,"b,strong")&&(o.bold=!0),gM(r,"i,em")&&(o.italic=!0),gM(r,"u")&&(o.underline=!0),gM(r,"s,strike")&&(o.through=!0),gM(r,"sub")&&(o.sub=!0),gM(r,"sup")&&(o.sup=!0),gM(r,"code")&&(o.code=!0),o}};function rz(e){return function(t,n,r){return Fv("h"+e,null,n)}}var oz={type:"header1",renderElem:rz(1)},iz={type:"header2",renderElem:rz(2)},az={type:"header3",renderElem:rz(3)},uz={type:"header4",renderElem:rz(4)},sz={type:"header5",renderElem:rz(5)},lz=aR.PROPER,cz=RegExp.prototype,fz=cz.toString,dz=NP(pL),pz=gP((function(){return"/a/b"!=fz.call({source:"a",flags:"b"})})),hz=lz&&"toString"!=fz.name;(pz||hz)&&uR(RegExp.prototype,"toString",(function(){var e=P_(this),t=dL(e.source),n=e.flags;return"/"+t+"/"+dL(void 0===n&&$P(cz,e)&&!("flags"in cz)?dz(e):n)}),{unsafe:!0});var vz,gz=vP.TypeError,yz=function(e){if(Nj(e))throw gz("The method doesn't accept regular expressions");return e},mz=S_("match"),bz=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[mz]=!1,"/./"[e](t)}catch(e){}}return!1},Ez=B_.f,wz=NP("".startsWith),Sz=NP("".slice),Cz=Math.min,Dz=bz("startsWith");function Az(e){var t=sM(Nf.nodes(e,{match:function(e){return Qx.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=sM(n,1)[0];return Qx.getNodeType(r)}function Oz(e){return null==e.selection||!sM(Nf.nodes(e,{match:function(e){var t=Qx.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function xz(e,t){t&&md.setNodes(e,{type:t})}LR({target:"String",proto:!0,forced:!(!Dz&&(vz=Ez(String.prototype,"startsWith"),vz&&!vz.writable)||Dz)},{startsWith:function(e){var t=dL(LP(this));yz(e);var n=vR(Cz(arguments.length>1?arguments[1]:void 0,t.length)),r=dL(e);return wz?wz(t,r,n):Sz(t,n,n+r.length)===r}});var Tz=function(){function e(){this.title=UF("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:UF("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Az(e)},e.prototype.isDisabled=function(e){return Oz(e)},e.prototype.exec=function(e,t){xz(e,t.toString())},e}(),Nz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Az(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return Oz(e)},e.prototype.exec=function(e,t){var n=this.type;xz(e,t===n?"paragraph":n)},e}(),kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return rM(t,e),t}(Nz),Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return rM(t,e),t}(Nz),Iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return rM(t,e),t}(Nz),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return rM(t,e),t}(Nz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return rM(t,e),t}(Nz),_z={key:"headerSelect",factory:function(){return new Tz}},Rz={key:"header1",factory:function(){return new kz}},Lz={key:"header2",factory:function(){return new Bz}},jz={key:"header3",factory:function(){return new Iz}},Mz={key:"header4",factory:function(){return new Fz}},zz={key:"header5",factory:function(){return new Pz}};function Hz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Uz(e){return function(t,n,r){var o=Mp(t);return 0===(n=n.filter((function(e){return!!ed.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var $z={renderElems:[oz,iz,az,uz,sz],elemsToHtml:[{type:"header1",elemToHtml:Hz(1)},{type:"header2",elemToHtml:Hz(2)},{type:"header3",elemToHtml:Hz(3)},{type:"header4",elemToHtml:Hz(4)},{type:"header5",elemToHtml:Hz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Uz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Uz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Uz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Uz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Uz(5)}],menus:[_z,Rz,Lz,jz,Mz,zz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=sM(Nf.nodes(n,{match:function(e){return Qx.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&Qx.isSelectionAtLineEnd(e,r[1])?md.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Vz=Object.assign,Gz=Object.defineProperty,Wz=NP([].concat),qz=!Vz||gP((function(){if(yP&&1!==Vz({b:1},Vz(Gz({},"a",{enumerable:!0,get:function(){Gz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Vz({},e)[n]||mL(Vz({},t)).join("")!=r}))?function(e,t){for(var n=f_(e),r=arguments.length,o=1,i=AR.f,a=CP.f;r>o;)for(var u,s=_P(arguments[o++]),l=i?Wz(mL(s),i(s)):mL(s),c=l.length,f=0;c>f;)u=l[f++],yP&&!bP(a,s,u)||(n[u]=s[u]);return n}:Vz;function Kz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}LR({target:"Object",stat:!0,forced:Object.assign!==qz},{assign:qz});var Yz={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==Qj(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Xz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===Qx.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Mp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Mp(r).attr("data-value");"0"===o?Nf.removeMark(e,t):Nf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Mp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Mp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=UF("color.default")),"bgColor"===t&&(a=UF("color.clear"));var u=Mp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("color.color"),t.iconSvg=RM,t.mark="color",t}return rM(t,e),t}(Xz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("color.bgColor"),t.iconSvg=LM,t.mark="bgColor",t}return rM(t,e),t}(Xz),Qz=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],eH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Kz(i,{color:r}),o&&Kz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((Zj(t)||"span"!==Qj(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Jj(n)):t},preParseHtml:[Yz],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=eM(r,"color");i&&(o.color=i);var a=eM(r,"background-color");return a||(a=eM(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Zz},config:{colors:Qz}},{key:"bgColor",factory:function(){return new Jz},config:{colors:Qz}}]},tH=/^(?:\w+:)?\/\/(\S+)$/,nH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,rH=/^[^\s\.]+\.\S{2,}$/,oH=mR.includes;LR({target:"Array",proto:!0},{includes:function(e){return oH(this,e,arguments.length>1?arguments[1]:void 0)}}),Aj("includes");var iH=NP([].slice),aH=uL("slice"),uH=S_("species"),sH=vP.Array,lH=Math.max;function cH(e){return void 0===e&&(e="r"),e+"-"+jh()}function fH(e){return e.replace(/</g,"<").replace(/>/g,">")}function dH(e,t,n,r){return iM(this,void 0,void 0,(function(){var o,i;return aM(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function pH(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function hH(e){return null==e.selection||!!Qx.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function vH(e,t){return{type:"link",url:fH(e),children:t?[{text:t}]:[]}}function gH(e,t,n){return iM(this,void 0,void 0,(function(){var r,o,i,a,u;return aM(this,(function(s){switch(s.label){case 0:return n?(t||(t=n),e.restoreSelection(),hH(e)?[2]:[4,dH("insertLink",e,t,n)]):[2];case 1:return s.sent()?[4,pH("insertLink",e,n)]:[2];case 2:if(r=s.sent(),null==(o=e.selection))return[2];if(qf.isCollapsed(o)){if((a=Qx.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),u=vH(r,t),md.insertNodes(e,u),e.insertFragment([{text:" "}])}else if((i=Nf.string(e,o))!==t){if((a=Qx.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),u=vH(r,t),md.insertNodes(e,u)}else u=vH(r),md.wrapNodes(e,u,{split:!0}),md.collapse(e,{edge:"end"});return[2]}}))}))}LR({target:"Array",proto:!0,forced:!aH},{slice:function(e,t){var n,r,o,i=jP(this),a=gR(i),u=pR(e,a),s=pR(void 0===t?a:t,a);if(MR(i)&&(n=i.constructor,(QR(n)&&(n===sH||MR(n.prototype))||zP(n)&&null===(n=n[uH]))&&(n=void 0),n===sH||void 0===n))return iH(i,u,s);for(r=new(void 0===n?sH:n)(lH(s-u,0)),o=0;u<s;u++,o++)u in i&&Ij(r,o,i[u]);return r.length=o,r}});var yH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Fv("a",{href:o,target:void 0===i?"_blank":i},t)}},mH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function bH(){return cH("w-e-insert-link")}var EH=function(){function e(){this.title=UF("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=bH(),this.urlInputId=bH(),this.buttonId=bH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return hH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=sM(CI(UF("link.text"),r),2),u=a[0],s=Mp(a[1]),l=sM(CI(UF("link.url"),o),2),c=l[0],f=Mp(l[1]),d=sM(AI(i,UF("common.ok")),1)[0];if(null==this.$content){var p=Mp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();gH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||qf.isCollapsed(t))s.val("");else{var v=Nf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function wH(){return cH("w-e-update-link")}var SH=function(){function e(){this.title=UF("link.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=wH(),this.buttonId=wH()}return e.prototype.getSelectedLinkElem=function(e){var t=Qx.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return Qx.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=sM(CI(UF("link.url"),t),2),o=r[0],i=Mp(r[1]),a=sM(AI(n,UF("common.ok")),1)[0];if(null==this.$content){var u=Mp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=Qx.getSelectedNodeByType(e,"link"),o=r?_f.string(r):"",i=u.find("#"+t).val();!function(e,t,n){iM(this,void 0,void 0,(function(){var r,o;return aM(this,(function(i){switch(i.label){case 0:return n?[4,dH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,pH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:fH(r)},md.setNodes(e,o,{match:function(e){return Qx.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),CH=function(){function e(){this.title=UF("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Qx.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.unwrapNodes(e,{match:function(e){return Qx.checkNodeType(e,"link")}})},e}(),DH=function(){function e(){this.title=UF("link.view"),this.iconSvg=_M,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=Qx.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),AH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},OH={renderElems:[yH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[mH],menus:[{key:"insertLink",factory:function(){return new EH},config:AH},{key:"editLink",factory:function(){return new SH},config:AH},{key:"unLink",factory:function(){return new CH}},{key:"viewLink",factory:function(){return new DH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(tH);if(!t)return!1;var n=t[1];return!(!n||!nH.test(n)&&!rH.test(n))}(t)){if(!hH(o)){var r=o.selection;if(null!=r){var i=Nf.string(o,r);gH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=sM(e,2),n=t[0],i=t[1];return"link"!==Qx.getNodeType(n)?r([n,i]):""===_f.string(n)?md.removeNodes(o,{at:i}):r([n,i])},o}},xH=NP(1..valueOf),TH=vP.RangeError,NH=vP.RangeError,kH=vP.String,BH=Math.floor,IH=NP((function(e){var t=dL(LP(this)),n="",r=cR(e);if(r<0||r==1/0)throw TH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),FH=NP("".slice),PH=NP(1..toFixed),_H=function(e,t,n){return 0===t?n:t%2==1?_H(e,t-1,n*e):_H(e*e,t/2,n)},RH=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=BH(o/1e7)},LH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=BH(r/t),r=r%t*1e7},jH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=kH(e[t]);n=""===n?r:n+IH("0",7-r.length)+r}return n};function MH(e,t){return"w-e-image-container-"+Qx.findKey(e,t).id}LR({target:"Number",proto:!0,forced:gP((function(){return"0.000"!==PH(8e-5,3)||"1"!==PH(.9,0)||"1.25"!==PH(1.255,2)||"1000000000000000128"!==PH(0xde0b6b3a7640080,0)}))||!gP((function(){PH({})}))},{toFixed:function(e){var t,n,r,o,i=xH(this),a=cR(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw NH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return kH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*_H(2,69,1))-69)<0?i*_H(2,-t,1):i/_H(2,t,1),n*=4503599627370496,(t=52-t)>0){for(RH(u,0,n),r=a;r>=7;)RH(u,1e7,0),r-=7;for(RH(u,_H(10,r,1),0),r=t-1;r>=23;)LH(u,1<<23),r-=23;LH(u,1<<r),RH(u,1,1),LH(u,2),l=jH(u)}else RH(u,0,n),RH(u,1<<-t,0),l=jH(u)+IH("0",a);return a>0?s+((o=l.length)<=a?"0."+IH("0",a-o)+l:FH(l,0,o-a)+"."+FH(l,o-a)):s+l}});var zH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,v=Qx.isNodeSelected(n,e),g={};d&&(g.width="100%"),h&&(g.height="100%");var y=Fv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Mp("body"),i=MH(e,t),a=r.width,u=r.height,s=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=Mp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),s=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",v);var r=Qx.getHoverbar(e);r&&r.hideAndClean()}var h=ev((function(e){e.preventDefault();var t=e.clientX,n=l+(f?s-t:t-s),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:oM(oM({},t.style),{width:r+"px",height:i+"px"})};md.setNodes(e,a,{at:Qx.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),u&&(g.height=u),Fv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Mp(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,Fv("div",{className:"w-e-image-dragger left-top"}),Fv("div",{className:"w-e-image-dragger right-top"}),Fv("div",{className:"w-e-image-dragger left-bottom"}),Fv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),Fv("div",{id:MH(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},HH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:eM(r,"width"),height:eM(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function UH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),iM(this,void 0,void 0,(function(){var i,a;return aM(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function $H(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function VH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),iM(this,void 0,void 0,(function(){var o,i,a;return aM(this,(function(u){switch(u.label){case 0:return[4,UH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,$H("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:fH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),Qx.getSelectedNodeByType(e,"image")&&e.move(1),GH(e)||(md.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function GH(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!sM(Nf.nodes(e,{match:function(t){var n=Qx.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function WH(){return cH("w-e-insert-image")}var qH=function(){function e(){this.title=UF("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=WH(),this.altInputId=WH(),this.hrefInputId=WH(),this.buttonId=WH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return GH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=sM(CI(UF("image.src"),r),2),s=u[0],l=Mp(u[1]),c=sM(CI(UF("image.desc"),o),2),f=c[0],d=Mp(c[1]),p=sM(CI(UF("image.link"),i),2),h=p[0],v=Mp(p[1]),g=sM(AI(a,UF("common.ok")),1)[0];if(null==this.$content){var y=Mp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),l.val(""),d.val(""),v.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||VH(e,t,n,r))},e}(),KH=function(){function e(){this.title=UF("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Qx.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{match:function(e){return Qx.checkNodeType(e,"image")}})},e}();function YH(){return cH("w-e-edit-image")}var XH=function(){function e(){this.title=UF("image.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=YH(),this.altInputId=YH(),this.hrefInputId=YH(),this.buttonId=YH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return Qx.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=sM(CI(UF("image.src"),r),2),l=s[0],c=Mp(s[1]),f=sM(CI(UF("image.desc"),o),2),d=f[0],p=Mp(f[1]),h=sM(CI(UF("image.link"),i),2),v=h[0],g=Mp(h[1]),y=sM(AI(a,UF("common.ok")),1)[0];if(null==this.$content){var m=Mp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(v),b.append(y);var E=u,w=E.src,S=E.alt,C=void 0===S?"":S,D=E.href,A=void 0===D?"":D;return c.val(w),p.val(C),g.val(A),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),iM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return aM(this,(function(f){switch(f.label){case 0:return[4,UH("editImage",e,t,n,r)];case 1:return f.sent()?[4,$H("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=Qx.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:oM(oM({},void 0===u?{}:u),o)},md.setNodes(e,s,{match:function(e){return Qx.checkNodeType(e,"image")}}),l=Qx.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),ZH=function(){function e(){this.title=UF("image.viewLink"),this.iconSvg=_M,this.tag="button"}return e.prototype.getValue=function(e){var t=Qx.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),JH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return Qx.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=Qx.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:oM(oM({},void 0===o?{}:o),{width:this.value,height:""})};md.setNodes(e,i,{match:function(e){return Qx.checkNodeType(e,"image")}})}}},e}(),QH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return rM(t,e),t}(JH),eU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return rM(t,e),t}(JH),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return rM(t,e),t}(JH);function nU(){return cH("w-e-insert-image")}var rU=function(){function e(){this.title=UF("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=nU(),this.heightInputId=nU(),this.buttonId=nU()}return e.prototype.getSelectedImageNode=function(e){return Qx.getSelectedNodeByType(e,"image")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=sM(CI(UF("image.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=sM(CI(UF("image.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=sM(AI(o,UF("image.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p=oM(oM({},f),{style:{width:s,height:l}});md.setNodes(e,p,{match:function(e){return Qx.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedImageNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"auto":y,b=g.height,E=void 0===b?"auto":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}(),oU={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},iU={renderElems:[zH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}}],parseElemsHtml:[HH],menus:[{key:"insertImage",factory:function(){return new qH},config:oU},{key:"deleteImage",factory:function(){return new KH}},{key:"editImage",factory:function(){return new XH},config:oU},{key:"viewImageLink",factory:function(){return new ZH}},{key:"imageWidth30",factory:function(){return new QH}},{key:"imageWidth50",factory:function(){return new eU}},{key:"imageWidth100",factory:function(){return new tU}},{key:"editorImageSizeMenu",factory:function(){return new rU}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},aU={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Fv("div",{style:{margin:"5px 0"}},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=Qx.findPath(n,e),o={checked:t.target.checked};md.setNodes(n,o,{at:r})}}})),Fv("span",null,t));return o}},uU=function(){function e(){this.title=UF("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Qx.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!Qx.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);md.setNodes(e,{type:n?"paragraph":"todo"})},e}(),sU={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},lU={renderElems:[aU],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Mp(e).find("li"),n=Mp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[sU],menus:[{key:"todo",factory:function(){return new uU}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&qf.isCollapsed(r)){var o=Qx.getSelectedNodeByType(e,"todo");if(o&&0===_f.string(o).length)return void md.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},cU={type:"blockquote",renderElem:function(e,t,n){return Fv("blockquote",null,t)}},fU={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},dU=function(){function e(){this.title=UF("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!Qx.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!sM(Nf.nodes(e,{match:function(e){var t=Qx.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";md.setNodes(e,{type:n},{mode:"highest"})}},e}(),pU={renderElems:[cU],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[fU],menus:[{key:"blockquote",factory:function(){return new dU}}],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=sM(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=Qx.findPath(e,a),s=Nf.end(e,u);if($f.equals(s,o.focus)){var l=_f.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void md.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},hU=function(){function e(){this.title=UF("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===Qx.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Mp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Mp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),vU={menus:[{key:"emotion",factory:function(){return new hU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},gU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},yU={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==Qj(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",gU[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},mU=NP("".indexOf);LR({target:"String",proto:!0,forced:!bz("includes")},{includes:function(e){return!!~mU(dL(LP(this)),dL(yz(e)),arguments.length>1?arguments[1]:void 0)}});var bU,EU,wU=function(e){return e&&e.Math==Math&&e},SU=wU("object"==typeof globalThis&&globalThis)||wU("object"==typeof window&&window)||wU("object"==typeof self&&self)||wU("object"==typeof cP&&cP)||function(){return this}()||Function("return this")(),CU=Function.prototype,DU=CU.apply,AU=CU.bind,OU=CU.call,xU="object"==typeof Reflect&&Reflect.apply||(AU?OU.bind(DU):function(){return OU.apply(DU,arguments)}),TU=Function.prototype,NU=TU.bind,kU=TU.call,BU=NU&&NU.bind(kU),IU=NU?function(e){return e&&BU(kU,e)}:function(e){return e&&function(){return kU.apply(e,arguments)}},FU=function(e){return"function"==typeof e},PU=function(e){try{return!!e()}catch(e){return!0}},_U=!PU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),RU=Function.prototype.call,LU=RU.bind?RU.bind(RU):function(){return RU.apply(RU,arguments)},jU={}.propertyIsEnumerable,MU=Object.getOwnPropertyDescriptor,zU=MU&&!jU.call({1:2},1)?function(e){var t=MU(this,e);return!!t&&t.enumerable}:jU,HU={f:zU},UU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$U=IU({}.toString),VU=IU("".slice),GU=function(e){return VU($U(e),8,-1)},WU=SU.Object,qU=IU("".split),KU=PU((function(){return!WU("z").propertyIsEnumerable(0)}))?function(e){return"String"==GU(e)?qU(e,""):WU(e)}:WU,YU=SU.TypeError,XU=function(e){if(null==e)throw YU("Can't call method on "+e);return e},ZU=function(e){return KU(XU(e))},JU=function(e){return"object"==typeof e?null!==e:FU(e)},QU={},e$=function(e){return FU(e)?e:void 0},t$=function(e,t){return arguments.length<2?e$(QU[e])||e$(SU[e]):QU[e]&&QU[e][t]||SU[e]&&SU[e][t]},n$=IU({}.isPrototypeOf),r$=t$("navigator","userAgent")||"",o$=SU.process,i$=SU.Deno,a$=o$&&o$.versions||i$&&i$.version,u$=a$&&a$.v8;u$&&(EU=(bU=u$.split("."))[0]>0&&bU[0]<4?1:+(bU[0]+bU[1])),!EU&&r$&&(!(bU=r$.match(/Edge\/(\d+)/))||bU[1]>=74)&&(bU=r$.match(/Chrome\/(\d+)/))&&(EU=+bU[1]);var s$=EU,l$=!!Object.getOwnPropertySymbols&&!PU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s$&&s$<41})),c$=l$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,f$=SU.Object,d$=c$?function(e){return"symbol"==typeof e}:function(e){var t=t$("Symbol");return FU(t)&&n$(t.prototype,f$(e))},p$=SU.String,h$=SU.TypeError,v$=function(e){if(FU(e))return e;throw h$(function(e){try{return p$(e)}catch(e){return"Object"}}(e)+" is not a function")},g$=SU.TypeError,y$=Object.defineProperty,m$=SU["__core-js_shared__"]||function(e,t){try{y$(SU,e,{value:t,configurable:!0,writable:!0})}catch(n){SU[e]=t}return t}("__core-js_shared__",{}),b$=fP((function(e){(e.exports=function(e,t){return m$[e]||(m$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E$=SU.Object,w$=function(e){return E$(XU(e))},S$=IU({}.hasOwnProperty),C$=Object.hasOwn||function(e,t){return S$(w$(e),t)},D$=0,A$=Math.random(),O$=IU(1..toString),x$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+O$(++D$+A$,36)},T$=b$("wks"),N$=SU.Symbol,k$=N$&&N$.for,B$=c$?N$:N$&&N$.withoutSetter||x$,I$=function(e){if(!C$(T$,e)||!l$&&"string"!=typeof T$[e]){var t="Symbol."+e;l$&&C$(N$,e)?T$[e]=N$[e]:T$[e]=c$&&k$?k$(t):B$(t)}return T$[e]},F$=SU.TypeError,P$=I$("toPrimitive"),_$=function(e){var t=function(e,t){if(!JU(e)||d$(e))return e;var n,r,o=null==(n=e[P$])?void 0:v$(n);if(o){if(void 0===t&&(t="default"),r=LU(o,e,t),!JU(r)||d$(r))return r;throw F$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&FU(n=e.toString)&&!JU(r=LU(n,e)))return r;if(FU(n=e.valueOf)&&!JU(r=LU(n,e)))return r;if("string"!==t&&FU(n=e.toString)&&!JU(r=LU(n,e)))return r;throw g$("Can't convert object to primitive value")}(e,t)}(e,"string");return d$(t)?t:t+""},R$=SU.document,L$=JU(R$)&&JU(R$.createElement),j$=function(e){return L$?R$.createElement(e):{}},M$=!_U&&!PU((function(){return 7!=Object.defineProperty(j$("div"),"a",{get:function(){return 7}}).a})),z$=Object.getOwnPropertyDescriptor,H$={f:_U?z$:function(e,t){if(e=ZU(e),t=_$(t),M$)try{return z$(e,t)}catch(e){}if(C$(e,t))return UU(!LU(HU.f,e,t),e[t])}},U$=/#|\.prototype\./,$$=function(e,t){var n=G$[V$(e)];return n==q$||n!=W$&&(FU(t)?PU(t):!!t)},V$=$$.normalize=function(e){return String(e).replace(U$,".").toLowerCase()},G$=$$.data={},W$=$$.NATIVE="N",q$=$$.POLYFILL="P",K$=$$,Y$=IU(IU.bind),X$=function(e,t){return v$(e),void 0===t?e:Y$?Y$(e,t):function(){return e.apply(t,arguments)}},Z$=SU.String,J$=SU.TypeError,Q$=function(e){if(JU(e))return e;throw J$(Z$(e)+" is not an object")},eV=SU.TypeError,tV=Object.defineProperty,nV={f:_U?tV:function(e,t,n){if(Q$(e),t=_$(t),Q$(n),M$)try{return tV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw eV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},rV=_U?function(e,t,n){return nV.f(e,t,UU(1,n))}:function(e,t,n){return e[t]=n,e},oV=H$.f,iV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return xU(e,this,arguments)};return t.prototype=e.prototype,t},aV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?SU:d?SU[c]:(SU[c]||{}).prototype,v=f?QU:QU[c]||rV(QU,c,{})[c],g=v.prototype;for(o in t)n=!K$(f?o:c+(d?".":"#")+o,e.forced)&&h&&C$(h,o),a=v[o],n&&(u=e.noTargetGet?(l=oV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?X$(i,SU):e.wrap&&n?iV(i):p&&FU(i)?IU(i):i,(e.sham||i&&i.sham||a&&a.sham)&&rV(s,"sham",!0),rV(v,o,s),p&&(C$(QU,r=c+"Prototype")||rV(QU,r,{}),rV(QU[r],o,i),e.real&&g&&!g[o]&&rV(g,o,i)))},uV=Array.isArray||function(e){return"Array"==GU(e)},sV=Math.ceil,lV=Math.floor,cV=function(e){var t=+e;return t!=t||0===t?0:(t>0?lV:sV)(t)},fV=Math.min,dV=function(e){return(t=e.length)>0?fV(cV(t),9007199254740991):0;var t},pV=function(e,t,n){var r=_$(t);r in e?nV.f(e,r,UU(0,n)):e[r]=n},hV={};hV[I$("toStringTag")]="z";var vV="[object z]"===String(hV),gV=I$("toStringTag"),yV=SU.Object,mV="Arguments"==GU(function(){return arguments}()),bV=vV?GU:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yV(e),gV))?n:mV?GU(t):"Object"==(r=GU(t))&&FU(t.callee)?"Arguments":r},EV=IU(Function.toString);FU(m$.inspectSource)||(m$.inspectSource=function(e){return EV(e)});var wV=m$.inspectSource,SV=function(){},CV=[],DV=t$("Reflect","construct"),AV=/^\s*(?:class|function)\b/,OV=IU(AV.exec),xV=!AV.exec(SV),TV=function(e){if(!FU(e))return!1;try{return DV(SV,CV,e),!0}catch(e){return!1}},NV=!DV||PU((function(){var e;return TV(TV.call)||!TV(Object)||!TV((function(){e=!0}))||e}))?function(e){if(!FU(e))return!1;switch(bV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return xV||!!OV(AV,wV(e))}:TV,kV=I$("species"),BV=SU.Array,IV=function(e,t){return new(function(e){var t;return uV(e)&&(t=e.constructor,(NV(t)&&(t===BV||uV(t.prototype))||JU(t)&&null===(t=t[kV]))&&(t=void 0)),void 0===t?BV:t}(e))(0===t?0:t)},FV=I$("species"),PV=I$("isConcatSpreadable"),_V=SU.TypeError,RV=s$>=51||!PU((function(){var e=[];return e[PV]=!1,e.concat()[0]!==e})),LV=s$>=51||!PU((function(){var e=[];return(e.constructor={})[FV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),jV=function(e){if(!JU(e))return!1;var t=e[PV];return void 0!==t?!!t:uV(e)};aV({target:"Array",proto:!0,forced:!RV||!LV},{concat:function(e){var t,n,r,o,i,a=w$(this),u=IV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(jV(i=-1===t?a:arguments[t])){if(s+(o=dV(i))>9007199254740991)throw _V("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&pV(u,s,i[n])}else{if(s>=9007199254740991)throw _V("Maximum allowed index exceeded");pV(u,s++,i)}return u.length=s,u}});var MV,zV=SU.String,HV=function(e){if("Symbol"===bV(e))throw TypeError("Cannot convert a Symbol value to a string");return zV(e)},UV=Math.max,$V=Math.min,VV=function(e,t){var n=cV(e);return n<0?UV(n+t,0):$V(n,t)},GV=function(e){return function(t,n,r){var o,i=ZU(t),a=dV(i),u=VV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},WV={includes:GV(!0),indexOf:GV(!1)},qV={},KV=WV.indexOf,YV=IU([].push),XV=function(e,t){var n,r=ZU(e),o=0,i=[];for(n in r)!C$(qV,n)&&C$(r,n)&&YV(i,n);for(;t.length>o;)C$(r,n=t[o++])&&(~KV(i,n)||YV(i,n));return i},ZV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JV=Object.keys||function(e){return XV(e,ZV)},QV=_U?Object.defineProperties:function(e,t){Q$(e);for(var n,r=ZU(t),o=JV(t),i=o.length,a=0;i>a;)nV.f(e,n=o[a++],r[n]);return e},eG=t$("document","documentElement"),tG=b$("keys"),nG=function(e){return tG[e]||(tG[e]=x$(e))},rG=nG("IE_PROTO"),oG=function(){},iG=function(e){return"<script>"+e+"<\/script>"},aG=function(e){e.write(iG("")),e.close();var t=e.parentWindow.Object;return e=null,t},uG=function(){try{MV=new ActiveXObject("htmlfile")}catch(e){}var e,t;uG="undefined"!=typeof document?document.domain&&MV?aG(MV):((t=j$("iframe")).style.display="none",eG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iG("document.F=Object")),e.close(),e.F):aG(MV);for(var n=ZV.length;n--;)delete uG.prototype[ZV[n]];return uG()};qV[rG]=!0;var sG,lG,cG,fG=Object.create||function(e,t){var n;return null!==e?(oG.prototype=Q$(e),n=new oG,oG.prototype=null,n[rG]=e):n=uG(),void 0===t?n:QV(n,t)},dG=ZV.concat("length","prototype"),pG={f:Object.getOwnPropertyNames||function(e){return XV(e,dG)}},hG=SU.Array,vG=Math.max,gG=pG.f,yG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mG={f:function(e){return yG&&"Window"==GU(e)?function(e){try{return gG(e)}catch(e){return function(e,t,n){for(var r=dV(e),o=VV(void 0,r),i=VV(r,r),a=hG(vG(i-o,0)),u=0;o<i;o++,u++)pV(a,u,e[o]);return a.length=u,a}(yG)}}(e):gG(ZU(e))}},bG={f:Object.getOwnPropertySymbols},EG=IU([].slice),wG=function(e,t,n,r){r&&r.enumerable?e[t]=n:rV(e,t,n)},SG={f:I$},CG=nV.f,DG=function(e){var t=QU.Symbol||(QU.Symbol={});C$(t,e)||CG(t,e,{value:SG.f(e)})},AG=vV?{}.toString:function(){return"[object "+bV(this)+"]"},OG=nV.f,xG=I$("toStringTag"),TG=function(e,t,n,r){if(e){var o=n?e:e.prototype;C$(o,xG)||OG(o,xG,{configurable:!0,value:t}),r&&!vV&&rV(o,"toString",AG)}},NG=SU.WeakMap,kG=FU(NG)&&/native code/.test(wV(NG)),BG=SU.TypeError,IG=SU.WeakMap;if(kG||m$.state){var FG=m$.state||(m$.state=new IG),PG=IU(FG.get),_G=IU(FG.has),RG=IU(FG.set);sG=function(e,t){if(_G(FG,e))throw new BG("Object already initialized");return t.facade=e,RG(FG,e,t),t},lG=function(e){return PG(FG,e)||{}},cG=function(e){return _G(FG,e)}}else{var LG=nG("state");qV[LG]=!0,sG=function(e,t){if(C$(e,LG))throw new BG("Object already initialized");return t.facade=e,rV(e,LG,t),t},lG=function(e){return C$(e,LG)?e[LG]:{}},cG=function(e){return C$(e,LG)}}var jG={set:sG,get:lG,has:cG,enforce:function(e){return cG(e)?lG(e):sG(e,{})},getterFor:function(e){return function(t){var n;if(!JU(t)||(n=lG(t)).type!==e)throw BG("Incompatible receiver, "+e+" required");return n}}},MG=IU([].push),zG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=w$(s),v=KU(h),g=X$(l,c),y=dV(v),m=0,b=f||IV,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:MG(E,d)}else switch(e){case 4:return!1;case 7:MG(E,d)}return i?-1:r||o?o:E}},HG=[zG(0),zG(1),zG(2),zG(3),zG(4),zG(5),zG(6),zG(7)][0],UG=nG("hidden"),$G=I$("toPrimitive"),VG=jG.set,GG=jG.getterFor("Symbol"),WG=Object.prototype,qG=SU.Symbol,KG=qG&&qG.prototype,YG=SU.TypeError,XG=SU.QObject,ZG=t$("JSON","stringify"),JG=H$.f,QG=nV.f,eW=mG.f,tW=HU.f,nW=IU([].push),rW=b$("symbols"),oW=b$("op-symbols"),iW=b$("string-to-symbol-registry"),aW=b$("symbol-to-string-registry"),uW=b$("wks"),sW=!XG||!XG.prototype||!XG.prototype.findChild,lW=_U&&PU((function(){return 7!=fG(QG({},"a",{get:function(){return QG(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=JG(WG,t);r&&delete WG[t],QG(e,t,n),r&&e!==WG&&QG(WG,t,r)}:QG,cW=function(e,t){var n=rW[e]=fG(KG);return VG(n,{type:"Symbol",tag:e,description:t}),_U||(n.description=t),n},fW=function(e,t,n){e===WG&&fW(oW,t,n),Q$(e);var r=_$(t);return Q$(n),C$(rW,r)?(n.enumerable?(C$(e,UG)&&e[UG][r]&&(e[UG][r]=!1),n=fG(n,{enumerable:UU(0,!1)})):(C$(e,UG)||QG(e,UG,UU(1,{})),e[UG][r]=!0),lW(e,r,n)):QG(e,r,n)},dW=function(e,t){Q$(e);var n=ZU(t),r=JV(n).concat(gW(n));return HG(r,(function(t){_U&&!LU(pW,n,t)||fW(e,t,n[t])})),e},pW=function(e){var t=_$(e),n=LU(tW,this,t);return!(this===WG&&C$(rW,t)&&!C$(oW,t))&&(!(n||!C$(this,t)||!C$(rW,t)||C$(this,UG)&&this[UG][t])||n)},hW=function(e,t){var n=ZU(e),r=_$(t);if(n!==WG||!C$(rW,r)||C$(oW,r)){var o=JG(n,r);return!o||!C$(rW,r)||C$(n,UG)&&n[UG][r]||(o.enumerable=!0),o}},vW=function(e){var t=eW(ZU(e)),n=[];return HG(t,(function(e){C$(rW,e)||C$(qV,e)||nW(n,e)})),n},gW=function(e){var t=e===WG,n=eW(t?oW:ZU(e)),r=[];return HG(n,(function(e){!C$(rW,e)||t&&!C$(WG,e)||nW(r,rW[e])})),r};if(l$||(KG=(qG=function(){if(n$(KG,this))throw YG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?HV(arguments[0]):void 0,t=x$(e),n=function(e){this===WG&&LU(n,oW,e),C$(this,UG)&&C$(this[UG],t)&&(this[UG][t]=!1),lW(this,t,UU(1,e))};return _U&&sW&&lW(WG,t,{configurable:!0,set:n}),cW(t,e)}).prototype,wG(KG,"toString",(function(){return GG(this).tag})),wG(qG,"withoutSetter",(function(e){return cW(x$(e),e)})),HU.f=pW,nV.f=fW,H$.f=hW,pG.f=mG.f=vW,bG.f=gW,SG.f=function(e){return cW(I$(e),e)},_U&&QG(KG,"description",{configurable:!0,get:function(){return GG(this).description}})),aV({global:!0,wrap:!0,forced:!l$,sham:!l$},{Symbol:qG}),HG(JV(uW),(function(e){DG(e)})),aV({target:"Symbol",stat:!0,forced:!l$},{for:function(e){var t=HV(e);if(C$(iW,t))return iW[t];var n=qG(t);return iW[t]=n,aW[n]=t,n},keyFor:function(e){if(!d$(e))throw YG(e+" is not a symbol");if(C$(aW,e))return aW[e]},useSetter:function(){sW=!0},useSimple:function(){sW=!1}}),aV({target:"Object",stat:!0,forced:!l$,sham:!_U},{create:function(e,t){return void 0===t?fG(e):dW(fG(e),t)},defineProperty:fW,defineProperties:dW,getOwnPropertyDescriptor:hW}),aV({target:"Object",stat:!0,forced:!l$},{getOwnPropertyNames:vW,getOwnPropertySymbols:gW}),aV({target:"Object",stat:!0,forced:PU((function(){bG.f(1)}))},{getOwnPropertySymbols:function(e){return bG.f(w$(e))}}),ZG){var yW=!l$||PU((function(){var e=qG();return"[null]"!=ZG([e])||"{}"!=ZG({a:e})||"{}"!=ZG(Object(e))}));aV({target:"JSON",stat:!0,forced:yW},{stringify:function(e,t,n){var r=EG(arguments),o=t;if((JU(t)||void 0!==e)&&!d$(e))return uV(t)||(t=function(e,t){if(FU(o)&&(t=LU(o,this,e,t)),!d$(t))return t}),r[1]=t,xU(ZG,null,r)}})}if(!KG[$G]){var mW=KG.valueOf;wG(KG,$G,(function(e){return LU(mW,this)}))}TG(qG,"Symbol"),qV[UG]=!0,DG("asyncIterator"),DG("hasInstance"),DG("isConcatSpreadable"),DG("iterator"),DG("match"),DG("matchAll"),DG("replace"),DG("search"),DG("species"),DG("split"),DG("toPrimitive"),DG("toStringTag"),DG("unscopables"),TG(SU.JSON,"JSON",!0);var bW,EW,wW,SW=QU.Symbol,CW={},DW=Function.prototype,AW=_U&&Object.getOwnPropertyDescriptor,OW=C$(DW,"name"),xW={EXISTS:OW,PROPER:OW&&"something"===function(){}.name,CONFIGURABLE:OW&&(!_U||_U&&AW(DW,"name").configurable)},TW=!PU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),NW=nG("IE_PROTO"),kW=SU.Object,BW=kW.prototype,IW=TW?kW.getPrototypeOf:function(e){var t=w$(e);if(C$(t,NW))return t[NW];var n=t.constructor;return FU(n)&&t instanceof n?n.prototype:t instanceof kW?BW:null},FW=I$("iterator"),PW=!1;[].keys&&("next"in(wW=[].keys())?(EW=IW(IW(wW)))!==Object.prototype&&(bW=EW):PW=!0);var _W=null==bW||PU((function(){var e={};return bW[FW].call(e)!==e}));bW=_W?{}:fG(bW),FU(bW[FW])||wG(bW,FW,(function(){return this}));var RW={IteratorPrototype:bW,BUGGY_SAFARI_ITERATORS:PW},LW=RW.IteratorPrototype,jW=function(){return this};SU.String,SU.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{IU(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(e){}}();var MW=xW.PROPER,zW=RW.BUGGY_SAFARI_ITERATORS,HW=I$("iterator"),UW=function(){return this},$W=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=fG(LW,{next:UU(1,n)}),TG(e,o,!1,!0),CW[o]=jW}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!zW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[HW]||p["@@iterator"]||o&&p[o],v=!zW&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=IW(g.call(new e)))!==Object.prototype&&u.next&&(TG(u,f,!0,!0),CW[f]=UW),MW&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return LU(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(zW||d||!(l in p))&&wG(p,l,s[l]);else aV({target:t,proto:!0,forced:zW||d},s);return a&&p[HW]!==v&&wG(p,HW,v,{name:o}),CW[t]=v,s},VW=jG.set,GW=jG.getterFor("Array Iterator");$W(Array,"Array",(function(e,t){VW(this,{type:"Array Iterator",target:ZU(e),index:0,kind:t})}),(function(){var e=GW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),CW.Arguments=CW.Array;var WW=I$("toStringTag");for(var qW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var KW=SU[qW],YW=KW&&KW.prototype;YW&&bV(YW)!==WW&&rV(YW,WW,qW),CW[qW]=CW.Array}var XW=SW;DG("asyncDispose"),DG("dispose"),DG("matcher"),DG("metadata"),DG("observable"),DG("patternMatch"),DG("replaceAll");var ZW=XW,JW=IU("".charAt),QW=IU("".charCodeAt),eq=IU("".slice),tq=function(e){return function(t,n){var r,o,i=HV(XU(t)),a=cV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=QW(i,a))<55296||r>56319||a+1===u||(o=QW(i,a+1))<56320||o>57343?e?JW(i,a):r:e?eq(i,a,a+2):o-56320+(r-55296<<10)+65536}},nq=(tq(!1),tq(!0)),rq=jG.set,oq=jG.getterFor("String Iterator");$W(String,"String",(function(e){rq(this,{type:"String Iterator",string:HV(e),index:0})}),(function(){var e,t=oq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=nq(n,r),t.index+=e.length,{value:e,done:!1})}));var iq=SG.f("iterator"),aq=fP((function(e){function t(n){return"function"==typeof ZW&&"symbol"==typeof iq?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof ZW&&e.constructor===ZW&&e!==ZW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),uq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(aq),sq=aR.EXISTS,lq=L_.f,cq=Function.prototype,fq=NP(cq.toString),dq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pq=NP(dq.exec);yP&&!sq&&lq(cq,"name",{configurable:!0,get:function(){try{return pq(dq,fq(this))[1]}catch(e){return""}}});var hq=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!sM(Nf.nodes(e,{match:function(t){return"pre"===Qx.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),vq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("fontSize.title"),t.iconSvg=jM,t.mark="fontSize",t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:UF("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===uq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(hq),gq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("fontFamily.title"),t.iconSvg=MM,t.mark="fontFamily",t.selectPanelWidth=150,t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:UF("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===uq(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(hq),yq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Kz(i,{fontSize:r}),o&&Kz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((Zj(t)||"span"!==Qj(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Jj(n)):t},preParseHtml:[yU],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=eM(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=eM(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new vq},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new gq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},mq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Mp(e),n=eM(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},bq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=sM(Nf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":sM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=Qx.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Eq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("indent.decrease"),t.iconSvg=zM,t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){md.setNodes(e,{indent:null},{match:function(e){return Cf.isElement(e)}})},t}(bq),wq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("indent.increase"),t.iconSvg=HM,t.DEFAULT_INDENT_VALUE="2em",t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(ed.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize);return""+2*o+r.replace(""+o,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);md.setNodes(e,{indent:n},{match:function(e){return Cf.isElement(e)},mode:"highest"})},t}(bq),Sq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent,r=t;return n&&Kz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Mp(t);return r.css("text-indent",n),Jj(r)},preParseHtml:[mq],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=eM(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new wq}},{key:"delIndent",factory:function(){return new Eq}}]},Cq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=Qx.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!Qx.getSelectedElems(e).some((function(t){var n=t.type;return!(!Nf.isVoid(e,t)||!Nf.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),Dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.left"),t.iconSvg=UM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"left"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.right"),t.iconSvg=$M,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"right"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Oq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.center"),t.iconSvg=VM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"center"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.justify"),t.iconSvg=GM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"justify"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Tq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign,r=t;return n&&Kz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Mp(t);return r.css("text-align",n),Jj(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=eM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Dq}},{key:"justifyRight",factory:function(){return new Aq}},{key:"justifyCenter",factory:function(){return new Oq}},{key:"justifyJustify",factory:function(){return new xq}}]},Nq=function(){function e(){this.title=UF("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:UF("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=Qx.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Cf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){md.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),kq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Kz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Mp(t);return r.css("line-height",n),Jj(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=eM(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Nq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Bq=function(){function e(){this.title=UF("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),Iq=function(){function e(){this.title=UF("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Fq={menus:[{key:"redo",factory:function(){return new Bq}},{key:"undo",factory:function(){return new Iq}}]},Pq={type:"divider",renderElem:function(e,t,n){return pv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:Qx.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[pv("hr")])}},_q=function(){function e(){this.title=UF("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!Qx.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=Qx.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){md.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),Rq={renderElems:[Pq],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new _q}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=sM(e,2),o=t[0],i=t[1];if("divider"!==Qx.getNodeType(o))return n([o,i]);Qx.isLastNode(r,o)&&md.insertNodes(r,Qx.genEmptyParagraph(),{at:[i[0]+1]})},r}},Lq=iL.map;LR({target:"Array",proto:!0,forced:!uL("map")},{map:function(e){return Lq(this,e,arguments.length>1?arguments[1]:void 0)}});var jq=NP([].join),Mq=_P!=Object,zq=wM("join",",");LR({target:"Array",proto:!0,forced:Mq||!zq},{join:function(e){return jq(jP(this),void 0===e?",":e)}});var Hq=function(){function e(){this.title=UF("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=Qx.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Qx.getParentNode(e,t);return null==n||"pre"!==Qx.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=Qx.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=Qx.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=_f.string(t);md.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));md.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Nf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=uM(i),u=a.next();!u.done;u=a.next()){var s=sM(u.value,1)[0];s&&o.push(_f.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}md.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};md.insertNodes(e,l,{mode:"highest"})},e}(),Uq={key:"codeBlock",factory:function(){return new Hq}};LR({target:"String",proto:!0,forced:hM("anchor")},{anchor:function(e){return pM(this,"a","name",e)}}),JL("match",(function(e,t,n){return[function(t){var n=LP(this),r=null==t?void 0:o_(t,e);return r?bP(r,t,n):new RegExp(t)[e](dL(n))},function(e){var r=P_(this),o=dL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return pj(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=pj(r,o));){var c=dL(u[0]);s[l]=c,""===c&&(r.lastIndex=oj(o,vR(r.lastIndex),a)),l++}return 0===l?null:s}]}));var $q={type:"pre",renderElem:function(e,t,n){return Fv("pre",null,t)}},Vq={type:"code",renderElem:function(e,t,n){return Fv("code",null,t)}},Gq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return"code"===Qx.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===Qx.getNodeType(e)}))}}},Wq={menus:[Uq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=Qx.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=_f.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=sM(e,2),r=t[0],i=t[1],a=Qx.getNodeType(r);return"code"===a&&i.length<=1&&md.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(Qx.isLastNode(o,r)&&md.insertNodes(o,Qx.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==Qx.getNodeType(r.children[0])&&(md.unwrapNodes(o),md.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=Qx.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Nf.insertText(o,t)}else r(e)},o},renderElems:[$q,Vq],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Mp(e);if("code"!==Qj(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Mp(e)[0].textContent||""}]}}},Gq]},qq=function(){function e(){this.title=UF("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Kq={menus:[{key:"fullScreen",factory:function(){return new qq}}]},Yq=function(){function e(){this.title=UF("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!qf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];md.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Nf.start(e,r))}},e}(),Xq=[nz,eH,yq,Sq,Tq,kq,iU,Rq,vU,OH,Wq,pU,$z,cM,lU,Fq,Kq,{menus:[{key:"enter",factory:function(){return new Yq}}]}];MF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),MF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Zq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Jq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qq,eK,tK=function(e){return e&&e.Math==Math&&e},nK=tK("object"==typeof globalThis&&globalThis)||tK("object"==typeof window&&window)||tK("object"==typeof self&&self)||tK("object"==typeof Zq&&Zq)||function(){return this}()||Function("return this")(),rK=Function.prototype,oK=rK.bind,iK=rK.call,aK=oK&&oK.bind(iK),uK=oK?function(e){return e&&aK(iK,e)}:function(e){return e&&function(){return iK.apply(e,arguments)}},sK=function(e){try{return!!e()}catch(e){return!0}},lK=uK({}.toString),cK=uK("".slice),fK=function(e){return cK(lK(e),8,-1)},dK=nK.Object,pK=uK("".split),hK=sK((function(){return!dK("z").propertyIsEnumerable(0)}))?function(e){return"String"==fK(e)?pK(e,""):dK(e)}:dK,vK=nK.TypeError,gK=function(e){if(null==e)throw vK("Can't call method on "+e);return e},yK=function(e){return hK(gK(e))},mK=Object.defineProperty,bK=function(e,t){try{mK(nK,e,{value:t,configurable:!0,writable:!0})}catch(n){nK[e]=t}return t},EK=nK["__core-js_shared__"]||bK("__core-js_shared__",{}),wK=Jq((function(e){(e.exports=function(e,t){return EK[e]||(EK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),SK=nK.Object,CK=function(e){return SK(gK(e))},DK=uK({}.hasOwnProperty),AK=Object.hasOwn||function(e,t){return DK(CK(e),t)},OK=0,xK=Math.random(),TK=uK(1..toString),NK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+TK(++OK+xK,36)},kK=function(e){return"function"==typeof e},BK=function(e){return kK(e)?e:void 0},IK=function(e,t){return arguments.length<2?BK(nK[e]):nK[e]&&nK[e][t]},FK=IK("navigator","userAgent")||"",PK=nK.process,_K=nK.Deno,RK=PK&&PK.versions||_K&&_K.version,LK=RK&&RK.v8;LK&&(eK=(Qq=LK.split("."))[0]>0&&Qq[0]<4?1:+(Qq[0]+Qq[1])),!eK&&FK&&(!(Qq=FK.match(/Edge\/(\d+)/))||Qq[1]>=74)&&(Qq=FK.match(/Chrome\/(\d+)/))&&(eK=+Qq[1]);var jK,MK=eK,zK=!!Object.getOwnPropertySymbols&&!sK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&MK&&MK<41})),HK=zK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,UK=wK("wks"),$K=nK.Symbol,VK=$K&&$K.for,GK=HK?$K:$K&&$K.withoutSetter||NK,WK=function(e){if(!AK(UK,e)||!zK&&"string"!=typeof UK[e]){var t="Symbol."+e;zK&&AK($K,e)?UK[e]=$K[e]:UK[e]=HK&&VK?VK(t):GK(t)}return UK[e]},qK=function(e){return"object"==typeof e?null!==e:kK(e)},KK=nK.String,YK=nK.TypeError,XK=function(e){if(qK(e))return e;throw YK(KK(e)+" is not an object")},ZK=!sK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),JK=nK.document,QK=qK(JK)&&qK(JK.createElement),eY=function(e){return QK?JK.createElement(e):{}},tY=!ZK&&!sK((function(){return 7!=Object.defineProperty(eY("div"),"a",{get:function(){return 7}}).a})),nY=Function.prototype.call,rY=nY.bind?nY.bind(nY):function(){return nY.apply(nY,arguments)},oY=uK({}.isPrototypeOf),iY=nK.Object,aY=HK?function(e){return"symbol"==typeof e}:function(e){var t=IK("Symbol");return kK(t)&&oY(t.prototype,iY(e))},uY=nK.String,sY=function(e){try{return uY(e)}catch(e){return"Object"}},lY=nK.TypeError,cY=function(e){if(kK(e))return e;throw lY(sY(e)+" is not a function")},fY=function(e,t){var n=e[t];return null==n?void 0:cY(n)},dY=nK.TypeError,pY=nK.TypeError,hY=WK("toPrimitive"),vY=function(e){var t=function(e,t){if(!qK(e)||aY(e))return e;var n,r=fY(e,hY);if(r){if(void 0===t&&(t="default"),n=rY(r,e,t),!qK(n)||aY(n))return n;throw pY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&kK(n=e.toString)&&!qK(r=rY(n,e)))return r;if(kK(n=e.valueOf)&&!qK(r=rY(n,e)))return r;if("string"!==t&&kK(n=e.toString)&&!qK(r=rY(n,e)))return r;throw dY("Can't convert object to primitive value")}(e,t)}(e,"string");return aY(t)?t:t+""},gY=nK.TypeError,yY=Object.defineProperty,mY={f:ZK?yY:function(e,t,n){if(XK(e),t=vY(t),XK(n),tY)try{return yY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bY=Math.ceil,EY=Math.floor,wY=function(e){var t=+e;return t!=t||0===t?0:(t>0?EY:bY)(t)},SY=Math.max,CY=Math.min,DY=function(e,t){var n=wY(e);return n<0?SY(n+t,0):CY(n,t)},AY=Math.min,OY=function(e){return e>0?AY(wY(e),9007199254740991):0},xY=function(e){return OY(e.length)},TY=function(e){return function(t,n,r){var o,i=yK(t),a=xY(i),u=DY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},NY={includes:TY(!0),indexOf:TY(!1)},kY={},BY=NY.indexOf,IY=uK([].push),FY=function(e,t){var n,r=yK(e),o=0,i=[];for(n in r)!AK(kY,n)&&AK(r,n)&&IY(i,n);for(;t.length>o;)AK(r,n=t[o++])&&(~BY(i,n)||IY(i,n));return i},PY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_Y=Object.keys||function(e){return FY(e,PY)},RY=ZK?Object.defineProperties:function(e,t){XK(e);for(var n,r=yK(t),o=_Y(t),i=o.length,a=0;i>a;)mY.f(e,n=o[a++],r[n]);return e},LY=IK("document","documentElement"),jY=wK("keys"),MY=function(e){return jY[e]||(jY[e]=NK(e))},zY=MY("IE_PROTO"),HY=function(){},UY=function(e){return"<script>"+e+"<\/script>"},$Y=function(e){e.write(UY("")),e.close();var t=e.parentWindow.Object;return e=null,t},VY=function(){try{jK=new ActiveXObject("htmlfile")}catch(e){}var e,t;VY="undefined"!=typeof document?document.domain&&jK?$Y(jK):((t=eY("iframe")).style.display="none",LY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(UY("document.F=Object")),e.close(),e.F):$Y(jK);for(var n=PY.length;n--;)delete VY.prototype[PY[n]];return VY()};kY[zY]=!0;var GY=Object.create||function(e,t){var n;return null!==e?(HY.prototype=XK(e),n=new HY,HY.prototype=null,n[zY]=e):n=VY(),void 0===t?n:RY(n,t)},WY=WK("unscopables"),qY=Array.prototype;null==qY[WY]&&mY.f(qY,WY,{configurable:!0,value:GY(null)});var KY=function(e){qY[WY][e]=!0},YY={},XY=uK(Function.toString);kK(EK.inspectSource)||(EK.inspectSource=function(e){return XY(e)});var ZY,JY,QY,eX=EK.inspectSource,tX=nK.WeakMap,nX=kK(tX)&&/native code/.test(eX(tX)),rX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oX=ZK?function(e,t,n){return mY.f(e,t,rX(1,n))}:function(e,t,n){return e[t]=n,e},iX=nK.TypeError,aX=nK.WeakMap;if(nX||EK.state){var uX=EK.state||(EK.state=new aX),sX=uK(uX.get),lX=uK(uX.has),cX=uK(uX.set);ZY=function(e,t){if(lX(uX,e))throw new iX("Object already initialized");return t.facade=e,cX(uX,e,t),t},JY=function(e){return sX(uX,e)||{}},QY=function(e){return lX(uX,e)}}else{var fX=MY("state");kY[fX]=!0,ZY=function(e,t){if(AK(e,fX))throw new iX("Object already initialized");return t.facade=e,oX(e,fX,t),t},JY=function(e){return AK(e,fX)?e[fX]:{}},QY=function(e){return AK(e,fX)}}var dX,pX,hX,vX={set:ZY,get:JY,has:QY,enforce:function(e){return QY(e)?JY(e):ZY(e,{})},getterFor:function(e){return function(t){var n;if(!qK(t)||(n=JY(t)).type!==e)throw iX("Incompatible receiver, "+e+" required");return n}}},gX={}.propertyIsEnumerable,yX=Object.getOwnPropertyDescriptor,mX={f:yX&&!gX.call({1:2},1)?function(e){var t=yX(this,e);return!!t&&t.enumerable}:gX},bX=Object.getOwnPropertyDescriptor,EX={f:ZK?bX:function(e,t){if(e=yK(e),t=vY(t),tY)try{return bX(e,t)}catch(e){}if(AK(e,t))return rX(!rY(mX.f,e,t),e[t])}},wX=Function.prototype,SX=ZK&&Object.getOwnPropertyDescriptor,CX=AK(wX,"name"),DX={EXISTS:CX,PROPER:CX&&"something"===function(){}.name,CONFIGURABLE:CX&&(!ZK||ZK&&SX(wX,"name").configurable)},AX=Jq((function(e){var t=DX.CONFIGURABLE,n=vX.get,r=vX.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;kK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!AK(i,"name")||t&&i.name!==f)&&oX(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==nK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:oX(e,n,i)):l?e[n]=i:bK(n,i)})(Function.prototype,"toString",(function(){return kK(this)&&n(this).source||eX(this)}))})),OX=PY.concat("length","prototype"),xX={f:Object.getOwnPropertyNames||function(e){return FY(e,OX)}},TX={f:Object.getOwnPropertySymbols},NX=uK([].concat),kX=IK("Reflect","ownKeys")||function(e){var t=xX.f(XK(e)),n=TX.f;return n?NX(t,n(e)):t},BX=function(e,t){for(var n=kX(t),r=mY.f,o=EX.f,i=0;i<n.length;i++){var a=n[i];AK(e,a)||r(e,a,o(t,a))}},IX=/#|\.prototype\./,FX=function(e,t){var n=_X[PX(e)];return n==LX||n!=RX&&(kK(t)?sK(t):!!t)},PX=FX.normalize=function(e){return String(e).replace(IX,".").toLowerCase()},_X=FX.data={},RX=FX.NATIVE="N",LX=FX.POLYFILL="P",jX=FX,MX=EX.f,zX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?nK:l?nK[u]||bK(u,{}):(nK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=MX(n,r))&&a.value:n[r],!jX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;BX(i,o)}(e.sham||o&&o.sham)&&oX(i,"sham",!0),AX(n,r,i,e)}},HX=!sK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),UX=MY("IE_PROTO"),$X=nK.Object,VX=$X.prototype,GX=HX?$X.getPrototypeOf:function(e){var t=CK(e);if(AK(t,UX))return t[UX];var n=t.constructor;return kK(n)&&t instanceof n?n.prototype:t instanceof $X?VX:null},WX=WK("iterator"),qX=!1;[].keys&&("next"in(hX=[].keys())?(pX=GX(GX(hX)))!==Object.prototype&&(dX=pX):qX=!0);var KX=null==dX||sK((function(){var e={};return dX[WX].call(e)!==e}));KX&&(dX={}),kK(dX[WX])||AX(dX,WX,(function(){return this}));var YX={IteratorPrototype:dX,BUGGY_SAFARI_ITERATORS:qX},XX=mY.f,ZX=WK("toStringTag"),JX=function(e,t,n){e&&!AK(e=n?e:e.prototype,ZX)&&XX(e,ZX,{configurable:!0,value:t})},QX=YX.IteratorPrototype,eZ=function(){return this},tZ=nK.String,nZ=nK.TypeError,rZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=uK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return XK(n),function(e){if("object"==typeof e||kK(e))return e;throw nZ("Can't set "+tZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oZ=DX.PROPER,iZ=DX.CONFIGURABLE,aZ=YX.IteratorPrototype,uZ=YX.BUGGY_SAFARI_ITERATORS,sZ=WK("iterator"),lZ=function(){return this},cZ=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=GY(QX,{next:rX(1,n)}),JX(e,o,!1),YY[o]=eZ}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!uZ&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[sZ]||p["@@iterator"]||o&&p[o],v=!uZ&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=GX(g.call(new e)))!==Object.prototype&&u.next&&(GX(u)!==aZ&&(rZ?rZ(u,aZ):kK(u[sZ])||AX(u,sZ,lZ)),JX(u,f,!0)),oZ&&"values"==o&&h&&"values"!==h.name&&(iZ?oX(p,"name","values"):(d=!0,v=function(){return rY(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(uZ||d||!(l in p))&&AX(p,l,s[l]);else zX({target:t,proto:!0,forced:uZ||d},s);return p[sZ]!==v&&AX(p,sZ,v,{name:o}),YY[t]=v,s},fZ=vX.set,dZ=vX.getterFor("Array Iterator"),pZ=cZ(Array,"Array",(function(e,t){fZ(this,{type:"Array Iterator",target:yK(e),index:0,kind:t})}),(function(){var e=dZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");YY.Arguments=YY.Array,KY("keys"),KY("values"),KY("entries");var hZ={};hZ[WK("toStringTag")]="z";var vZ="[object z]"===String(hZ),gZ=WK("toStringTag"),yZ=nK.Object,mZ="Arguments"==fK(function(){return arguments}()),bZ=vZ?fK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yZ(e),gZ))?n:mZ?fK(t):"Object"==(r=fK(t))&&kK(t.callee)?"Arguments":r},EZ=vZ?{}.toString:function(){return"[object "+bZ(this)+"]"};vZ||AX(Object.prototype,"toString",EZ,{unsafe:!0});var wZ=nK.String,SZ=function(e){if("Symbol"===bZ(e))throw TypeError("Cannot convert a Symbol value to a string");return wZ(e)},CZ=uK("".charAt),DZ=uK("".charCodeAt),AZ=uK("".slice),OZ=function(e){return function(t,n){var r,o,i=SZ(gK(t)),a=wY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DZ(i,a))<55296||r>56319||a+1===u||(o=DZ(i,a+1))<56320||o>57343?e?CZ(i,a):r:e?AZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},xZ={codeAt:OZ(!1),charAt:OZ(!0)},TZ=xZ.charAt,NZ=vX.set,kZ=vX.getterFor("String Iterator");cZ(String,"String",(function(e){NZ(this,{type:"String Iterator",string:SZ(e),index:0})}),(function(){var e,t=kZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=TZ(n,r),t.index+=e.length,{value:e,done:!1})}));var BZ=function(e,t,n){for(var r in t)AX(e,r,t[r],n);return e},IZ=nK.Array,FZ=Math.max,PZ=xX.f,_Z="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],RZ={f:function(e){return _Z&&"Window"==fK(e)?function(e){try{return PZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=xY(e),s=DY(void 0,u),l=DY(u,u),c=IZ(FZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=vY(o))in r?mY.f(r,a,rX(0,i)):r[a]=i;return c.length=f,c}(_Z)}}(e):PZ(yK(e))}},LZ=sK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),jZ=Object.isExtensible,MZ=sK((function(){jZ(1)}))||LZ?function(e){return!!qK(e)&&(!LZ||"ArrayBuffer"!=fK(e))&&(!jZ||jZ(e))}:jZ,zZ=!sK((function(){return Object.isExtensible(Object.preventExtensions({}))})),HZ=Jq((function(e){var t=mY.f,n=!1,r=NK("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=xX.f,t=uK([].splice),o={};o[r]=1,e(o).length&&(xX.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},zX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:RZ.f}))},fastKey:function(e,t){if(!qK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!AK(e,r)){if(!MZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!AK(e,r)){if(!MZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return zZ&&n&&MZ(e)&&!AK(e,r)&&i(e),e}};kY[r]=!0})),UZ=uK(uK.bind),$Z=function(e,t){return cY(e),void 0===t?e:UZ?UZ(e,t):function(){return e.apply(t,arguments)}},VZ=WK("iterator"),GZ=Array.prototype,WZ=WK("iterator"),qZ=function(e){if(null!=e)return fY(e,WZ)||fY(e,"@@iterator")||YY[bZ(e)]},KZ=nK.TypeError,YZ=function(e,t,n){var r,o;XK(e);try{if(!(r=fY(e,"return"))){if("throw"===t)throw n;return n}r=rY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return XK(r),n},XZ=nK.TypeError,ZZ=function(e,t){this.stopped=e,this.result=t},JZ=ZZ.prototype,QZ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=$Z(t,f),g=function(e){return r&&YZ(r,"normal",e),new ZZ(!0,e)},y=function(e){return d?(XK(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=qZ(e)))throw XZ(sY(e)+" is not iterable");if(void 0!==(c=o)&&(YY.Array===c||GZ[VZ]===c)){for(i=0,a=xY(e);a>i;i++)if((u=y(e[i]))&&oY(JZ,u))return u;return new ZZ(!1)}r=function(e,t){var n=arguments.length<2?qZ(e):t;if(cY(n))return XK(rY(n,e));throw KZ(sY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=rY(s,r)).done;){try{u=y(l.value)}catch(e){YZ(r,"throw",e)}if("object"==typeof u&&u&&oY(JZ,u))return u}return new ZZ(!1)},eJ=nK.TypeError,tJ=function(e,t){if(oY(t,e))return e;throw eJ("Incorrect invocation")},nJ=WK("iterator"),rJ=!1;try{var oJ=0,iJ={next:function(){return{done:!!oJ++}},return:function(){rJ=!0}};iJ[nJ]=function(){return this},Array.from(iJ,(function(){throw 2}))}catch(Ml){}var aJ=Array.isArray||function(e){return"Array"==fK(e)},uJ=function(){},sJ=[],lJ=IK("Reflect","construct"),cJ=/^\s*(?:class|function)\b/,fJ=uK(cJ.exec),dJ=!cJ.exec(uJ),pJ=function(e){if(!kK(e))return!1;try{return lJ(uJ,sJ,e),!0}catch(e){return!1}},hJ=!lJ||sK((function(){var e;return pJ(pJ.call)||!pJ(Object)||!pJ((function(){e=!0}))||e}))?function(e){if(!kK(e))return!1;switch(bZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dJ||!!fJ(cJ,eX(e))}:pJ,vJ=WK("species"),gJ=nK.Array,yJ=function(e,t){return new(function(e){var t;return aJ(e)&&(t=e.constructor,(hJ(t)&&(t===gJ||aJ(t.prototype))||qK(t)&&null===(t=t[vJ]))&&(t=void 0)),void 0===t?gJ:t}(e))(0===t?0:t)},mJ=uK([].push),bJ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=CK(s),v=hK(h),g=$Z(l,c),y=xY(v),m=0,b=f||yJ,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:mJ(E,d)}else switch(e){case 4:return!1;case 7:mJ(E,d)}return i?-1:r||o?o:E}},EJ={forEach:bJ(0),map:bJ(1),filter:bJ(2),some:bJ(3),every:bJ(4),find:bJ(5),findIndex:bJ(6),filterReject:bJ(7)},wJ=HZ.getWeakData,SJ=vX.set,CJ=vX.getterFor,DJ=EJ.find,AJ=EJ.findIndex,OJ=uK([].splice),xJ=0,TJ=function(e){return e.frozen||(e.frozen=new NJ)},NJ=function(){this.entries=[]},kJ=function(e,t){return DJ(e.entries,(function(e){return e[0]===t}))};NJ.prototype={get:function(e){var t=kJ(this,e);if(t)return t[1]},has:function(e){return!!kJ(this,e)},set:function(e,t){var n=kJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=AJ(this.entries,(function(t){return t[0]===e}));return~t&&OJ(this.entries,t,1),!!~t}};var BJ,IJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){tJ(e,i),SJ(e,{type:t,id:xJ++,frozen:void 0}),null!=o&&QZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=CJ(t),u=function(e,t,n){var r=a(e),o=wJ(XK(t),!0);return!0===o?TJ(r).set(t,n):o[r.id]=n,e};return BZ(i,{delete:function(e){var t=a(this);if(!qK(e))return!1;var n=wJ(e);return!0===n?TJ(t).delete(e):n&&AK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!qK(e))return!1;var n=wJ(e);return!0===n?TJ(t).has(e):n&&AK(n,t.id)}}),BZ(i,n?{get:function(e){var t=a(this);if(qK(e)){var n=wJ(e);return!0===n?TJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},FJ=vX.enforce,PJ=!nK.ActiveXObject&&"ActiveXObject"in nK,_J=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},RJ=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=nK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=uK(u[e]);AX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!qK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!qK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!qK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(jX(e,!kK(a)||!(o||u.forEach&&!sK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),HZ.enable();else if(jX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=sK((function(){f.has(1)})),h=function(e,t){if(!rJ)return!1;var n=!1;try{var r={};r[nJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&sK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){tJ(e,u);var n=function(e,t,n){var r,o;return rZ&&kK(r=t.constructor)&&r!==n&&qK(o=r.prototype)&&o!==n.prototype&&rZ(e,o),e}(new a,e,s);return null!=t&&QZ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,zX({global:!0,forced:s!=a},l),JX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",_J,IJ);if(nX&&PJ){BJ=IJ.getConstructor(_J,"WeakMap",!0),HZ.enable();var LJ=RJ.prototype,jJ=uK(LJ.delete),MJ=uK(LJ.has),zJ=uK(LJ.get),HJ=uK(LJ.set);BZ(LJ,{delete:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),jJ(this,e)||t.frozen.delete(e)}return jJ(this,e)},has:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),MJ(this,e)||t.frozen.has(e)}return MJ(this,e)},get:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),MJ(this,e)?zJ(this,e):t.frozen.get(e)}return zJ(this,e)},set:function(e,t){if(qK(e)&&!MZ(e)){var n=FJ(this);n.frozen||(n.frozen=new BJ),MJ(this,e)?HJ(this,e,t):n.frozen.set(e,t)}else HJ(this,e,t);return this}})}var UJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$J=eY("span").classList,VJ=$J&&$J.constructor&&$J.constructor.prototype,GJ=VJ===Object.prototype?void 0:VJ,WJ=WK("iterator"),qJ=WK("toStringTag"),KJ=pZ.values,YJ=function(e,t){if(e){if(e[WJ]!==KJ)try{oX(e,WJ,KJ)}catch(t){e[WJ]=KJ}if(e[qJ]||oX(e,qJ,t),UJ[t])for(var n in pZ)if(e[n]!==pZ[n])try{oX(e,n,pZ[n])}catch(t){e[n]=pZ[n]}}};for(var XJ in UJ)YJ(nK[XJ]&&nK[XJ].prototype,XJ);YJ(GJ,"DOMTokenList");var ZJ=new WeakMap,JJ={type:"list-item",renderElem:function(e,t,n){ZJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=Qx.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Mf.previous(c),d=Nf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];ed.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Fv("div",{style:u},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Fv("span",null,t))}},QJ=function(e,t){return QJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},QJ(e,t)
|
|
54
|
-
/*! *****************************************************************************
|
|
55
|
-
Copyright (c) Microsoft Corporation.
|
|
56
|
-
|
|
57
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
58
|
-
purpose with or without fee is hereby granted.
|
|
59
|
-
|
|
60
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
61
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
62
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
63
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
64
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
65
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
66
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
67
|
-
***************************************************************************** */};function eQ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}QJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function tQ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function rQ(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=Qx.findPath(e,t),u=a;;){if(0===u.length||0===a[a.length-1])return null;u=Mf.previous(u);var s=Nf.node(e,u);if(!s)return null;var l=nQ(s,1)[0],c=l.level,f=void 0===c?0:c;if(Qx.getNodeType(l)!==r)return null;if(f===i)return l}}function oQ(e,t,n){var r=rQ(e,t,n);return!!r&&r.ordered===t.ordered}function iQ(e){return Nf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===Qx.findPath(e,t).length}})}var aQ=NY.includes;zX({target:"Array",proto:!0},{includes:function(e){return aQ(this,e,arguments.length>1?arguments[1]:void 0)}}),KY("includes");var uQ,sQ,lQ=function(){var e=XK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},cQ=nK.RegExp,fQ=sK((function(){var e=cQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dQ=fQ||sK((function(){return!cQ("a","y").sticky})),pQ={BROKEN_CARET:fQ||sK((function(){var e=cQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dQ,UNSUPPORTED_Y:fQ},hQ=nK.RegExp,vQ=sK((function(){var e=hQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),gQ=nK.RegExp,yQ=sK((function(){var e=gQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),mQ=vX.get,bQ=wK("native-string-replace",String.prototype.replace),EQ=RegExp.prototype.exec,wQ=EQ,SQ=uK("".charAt),CQ=uK("".indexOf),DQ=uK("".replace),AQ=uK("".slice),OQ=(sQ=/b*/g,rY(EQ,uQ=/a/,"a"),rY(EQ,sQ,"a"),0!==uQ.lastIndex||0!==sQ.lastIndex),xQ=pQ.BROKEN_CARET,TQ=void 0!==/()??/.exec("")[1];(OQ||TQ||xQ||vQ||yQ)&&(wQ=function(e){var t,n,r,o,i,a,u,s=this,l=mQ(s),c=SZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=rY(wQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=xQ&&s.sticky,h=rY(lQ,s),v=s.source,g=0,y=c;if(p&&(h=DQ(h,"y",""),-1===CQ(h,"g")&&(h+="g"),y=AQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==SQ(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),TQ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),OQ&&(r=s.lastIndex),o=rY(EQ,p?n:s,y),p?o?(o.input=AQ(o.input,g),o[0]=AQ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:OQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),TQ&&o&&o.length>1&&rY(bQ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=GY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var NQ=wQ;zX({target:"RegExp",proto:!0,forced:/./.exec!==NQ},{exec:NQ});var kQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return Qx.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!Qx.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?md.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),BQ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',IQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',FQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=UF("listModule.unOrderedList"),t.iconSvg=BQ,t}return eQ(t,e),t}(kQ),PQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=UF("listModule.orderedList"),t.iconSvg=IQ,t}return eQ(t,e),t}(kQ),_Q={key:"bulletedList",factory:function(){return new FQ}},RQ={key:"numberedList",factory:function(){return new PQ}},LQ=[],jQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=ZJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=Qx.findPath(t,e);if(0===s[0])return u+1;var l=Mf.previous(s),c=Nf.node(t,l);if(!c)return 0;var f=nQ(c,1)[0];if(Qx.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?oQ(t,e)?0:1:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",LQ.push(i);var s=function(e){var t=ZJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=Qx.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Mf.next(s),c=Nf.node(t,l);if(!c)return 0;var f=nQ(c,1)[0];if(Qx.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?oQ(t,f)?u-g:u-g+1:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+LQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},MQ=WK("species"),zQ=EJ.filter,HQ=("filter",MK>=51||!sK((function(){var e=[];return(e.constructor={})[MQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo})));zX({target:"Array",proto:!0,forced:!HQ},{filter:function(e){return zQ(this,e,arguments.length>1?arguments[1]:void 0)}});var UQ=Function.prototype,$Q=UQ.apply,VQ=UQ.bind,GQ=UQ.call,WQ="object"==typeof Reflect&&Reflect.apply||(VQ?GQ.bind($Q):function(){return GQ.apply($Q,arguments)}),qQ=(WK("species"),RegExp.prototype),KQ=xZ.charAt,YQ=function(e,t,n){return t+(n?KQ(e,t).length:1)},XQ=Math.floor,ZQ=uK("".charAt),JQ=uK("".replace),QQ=uK("".slice),e0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,t0=/\$([$&'`]|\d{1,2})/g,n0=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=t0;return void 0!==o&&(o=CK(o),s=e0),JQ(i,s,(function(i,s){var l;switch(ZQ(s,0)){case"$":return"$";case"&":return e;case"`":return QQ(t,0,n);case"'":return QQ(t,a);case"<":l=o[QQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=XQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?ZQ(s,1):r[f-1]+ZQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},r0=nK.TypeError,o0=function(e,t){var n=e.exec;if(kK(n)){var r=rY(n,e,t);return null!==r&&XK(r),r}if("RegExp"===fK(e))return rY(NQ,e,t);throw r0("RegExp#exec called on incompatible receiver")},i0=WK("replace"),a0=Math.max,u0=Math.min,s0=uK([].concat),l0=uK([].push),c0=uK("".indexOf),f0=uK("".slice),d0="$0"==="a".replace(/./,"$0"),p0=!!/./[i0]&&""===/./[i0]("a","$0");!function(e,t,n,r){var o=WK(e),i=!sK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=uK(/./[o]),s=function(e,t,n){var r=p0?"$":"$0";return[function(e,n){var r=gK(this),o=null==e?void 0:fY(e,i0);return o?rY(o,e,r,n):rY(t,SZ(r),e,n)},function(e,o){var i=XK(this),a=SZ(e);if("string"==typeof o&&-1===c0(o,r)&&-1===c0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=kK(o);s||(o=SZ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=o0(i,a);if(null===d)break;if(l0(f,d),!l)break;""===SZ(d[0])&&(i.lastIndex=YQ(a,OY(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=SZ((d=f[g])[0]),m=a0(u0(wY(d.index),a.length),0),b=[],E=1;E<d.length;E++)l0(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=s0([y],b,m,a);void 0!==w&&l0(S,w);var C=SZ(WQ(o,void 0,S))}else C=n0(y,a,m,b,w,o);m>=v&&(h+=f0(a,v,m)+C,v=m+y.length)}return h+f0(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=uK(e),s=t.exec;return s===NQ||s===qQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));AX(String.prototype,e,s[0]),AX(qQ,o,s[1])}}("replace",0,!!sK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!d0||p0);var h0=nK.TypeError,v0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&$Z(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&aJ(s))l=xY(s),c=v0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw h0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},g0=v0;function y0(e){return e.length?e[0].tagName.toLowerCase():""}zX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=CK(this),n=xY(t),r=yJ(t,0);return r.length=g0(r,t,t,n,0,void 0===e?1:wY(e)),r}}),KY("flat"),zX({global:!0},{globalThis:nK}),ah&&(Mp.fn.append=ah),$p&&(Mp.fn.attr=$p),sh&&(Mp.fn.parent=sh);var m0={renderElems:[JJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(n){var r=o.selection;if(null!=r)if(qf.isExpanded(r))t(n);else{var i=Qx.getSelectedNodeByType(o,"list-item");if(null!=i)if(0!==r.focus.offset)t(n);else{var a=i,u=a.level,s=void 0===u?0:u,l=a.ordered,c=void 0!==l&&l;if(s>0){var f=rQ(e,i,s-1);f&&f.ordered!==c?md.setNodes(o,{level:s-1,ordered:!c}):md.setNodes(o,{level:s-1})}else md.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(n)}else t(n)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(qf.isCollapsed(a)){var u=Qx.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void md.setNodes(o,{level:l+1})}}if(qf.isExpanded(a)){var c=0,f=!1;try{for(var d=tQ(iQ(o)),p=d.next();!p.done;p=d.next()){var h=nQ(p.value,1)[0];"list-item"===Qx.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var v=tQ(iQ(o)),g=v.next();!g.done;g=v.next()){var y=nQ(g.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,md.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=nQ(e,2),n=t[0],i=t[1],a=Qx.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||md.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[_Q,RQ],elemsToHtml:[jQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===y0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=y0(n);"ul"===r||"ol"===r;)r=y0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]},b0=n((function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",u="[object Boolean]",s="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",v="[object RegExp]",g="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",E="[object ArrayBuffer]",w="[object DataView]",S=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,D={};D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D[i]=D[a]=D[E]=D[u]=D[w]=D[s]=D[l]=D[c]=D[f]=D[d]=D[p]=D[v]=D[g]=D[y]=D[b]=!1;var A="object"==typeof e&&e&&e.Object===Object&&e,O="object"==typeof self&&self&&self.Object===Object&&self,x=A||O||Function("return this")(),T=n&&!n.nodeType&&n,N=T&&t&&!t.nodeType&&t,k=N&&N.exports===T,B=k&&A.process,I=function(){try{return B&&B.binding&&B.binding("util")}catch(e){}}(),F=I&&I.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var L=Array.prototype,j=Function.prototype,M=Object.prototype,z=x["__core-js_shared__"],H=j.toString,U=M.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),V=M.toString,G=RegExp("^"+H.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=k?x.Buffer:void 0,q=x.Symbol,K=x.Uint8Array,Y=M.propertyIsEnumerable,X=L.splice,Z=q?q.toStringTag:void 0,J=Object.getOwnPropertySymbols,Q=W?W.isBuffer:void 0,ee=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),te=Ne(x,"DataView"),ne=Ne(x,"Map"),re=Ne(x,"Promise"),oe=Ne(x,"Set"),ie=Ne(x,"WeakMap"),ae=Ne(Object,"create"),ue=Fe(te),se=Fe(ne),le=Fe(re),ce=Fe(oe),fe=Fe(ie),de=q?q.prototype:void 0,pe=de?de.valueOf:void 0;function he(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function me(e){var t=this.__data__=new ve(e);this.size=t.size}function be(e,t){var n=Re(e),r=!n&&_e(e),o=!n&&!r&&Le(e),i=!n&&!r&&!o&&Ue(e),a=n||r||o||i,u=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=u.length;for(var l in e)!t&&!U.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ie(l,s))||u.push(l);return u}function Ee(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=U.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var o=V.call(e);r&&(t?e[Z]=n:delete e[Z]);return o}(e):function(e){return V.call(e)}(e)}function Se(e){return He(e)&&we(e)==i}function Ce(e,t,n,r,o){return e===t||(null==e||null==t||!He(e)&&!He(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=Re(e),b=Re(t),S=h?a:Be(e),C=b?a:Be(t),D=(S=S==i?p:S)==p,A=(C=C==i?p:C)==p,O=S==C;if(O&&Le(e)){if(!Le(t))return!1;h=!0,D=!1}if(O&&!D)return c||(c=new me),h||Ue(e)?Oe(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!i(new K(e),new K(t)));case u:case s:case d:return Pe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var c=_;case g:var p=1&r;if(c||(c=R),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=Oe(c(e),c(t),r,o,i,a);return a.delete(e),b;case m:if(pe)return pe.call(e)==pe.call(t)}return!1}(e,t,S,n,r,o,c);if(!(1&n)){var x=D&&U.call(e,"__wrapped__"),T=A&&U.call(t,"__wrapped__");if(x||T){var N=x?e.value():e,k=T?t.value():t;return c||(c=new me),o(N,k,n,r,c)}}if(!O)return!1;return c||(c=new me),function(e,t,n,r,o,i){var a=1&n,u=xe(e),s=u.length,l=xe(t).length;if(s!=l&&!a)return!1;var c=s;for(;c--;){var f=u[c];if(!(a?f in t:U.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++c<s;){var v=e[f=u[c]],g=t[f];if(r)var y=a?r(g,v,f,t,e,i):r(v,g,f,e,t,i);if(!(void 0===y?v===g||o(v,g,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,c)}(e,t,n,r,Ce,o))}function De(e){return!(!ze(e)||function(e){return!!$&&$ in e}(e))&&(je(e)?G:S).test(Fe(e))}function Ae(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||M,t!==r)return ee(e);var t,n,r,o=[];for(var i in Object(e))U.call(e,i)&&"constructor"!=i&&o.push(i);return o}function Oe(e,t,n,r,o,i){var a=1&n,u=e.length,s=t.length;if(u!=s&&!(a&&s>u))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new ye:void 0;for(i.set(e,t),i.set(t,e);++c<u;){var p=e[c],h=t[c];if(r)var v=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==v){if(v)continue;f=!1;break}if(d){if(!P(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function xe(e){return function(e,t,n){var r=t(e);return Re(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,$e,ke)}function Te(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return De(n)?n:void 0}he.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},he.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},he.prototype.get=function(e){var t=this.__data__;if(ae){var n=t[e];return n===r?void 0:n}return U.call(t,e)?t[e]:void 0},he.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:U.call(t,e)},he.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ae&&void 0===t?r:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=Ee(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},ve.prototype.get=function(e){var t=this.__data__,n=Ee(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return Ee(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=Ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new he,map:new(ne||ve),string:new he}},ge.prototype.delete=function(e){var t=Te(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Te(this,e).get(e)},ge.prototype.has=function(e){return Te(this,e).has(e)},ge.prototype.set=function(e,t){var n=Te(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ye.prototype.add=ye.prototype.push=function(e){return this.__data__.set(e,r),this},ye.prototype.has=function(e){return this.__data__.has(e)},me.prototype.clear=function(){this.__data__=new ve,this.size=0},me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},me.prototype.get=function(e){return this.__data__.get(e)},me.prototype.has=function(e){return this.__data__.has(e)},me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ne||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var ke=J?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(J(e),(function(t){return Y.call(e,t)})))}:function(){return[]},Be=we;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pe(e,t){return e===t||e!=e&&t!=t}(te&&Be(new te(new ArrayBuffer(1)))!=w||ne&&Be(new ne)!=f||re&&Be(re.resolve())!=h||oe&&Be(new oe)!=g||ie&&Be(new ie)!=b)&&(Be=function(e){var t=we(e),n=t==p?e.constructor:void 0,r=n?Fe(n):"";if(r)switch(r){case ue:return w;case se:return f;case le:return h;case ce:return g;case fe:return b}return t});var _e=Se(function(){return arguments}())?Se:function(e){return He(e)&&U.call(e,"callee")&&!Y.call(e,"callee")},Re=Array.isArray;var Le=Q||function(){return!1};function je(e){if(!ze(e))return!1;var t=we(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Me(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function ze(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function He(e){return null!=e&&"object"==typeof e}var Ue=F?function(e){return function(t){return e(t)}}(F):function(e){return He(e)&&Me(e.length)&&!!D[we(e)]};function $e(e){return null!=(t=e)&&Me(t.length)&&!je(t)?be(e):Ae(e);var t}t.exports=function(e,t){return Ce(e,t)}}));MF("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),MF("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var E0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w0(e){var t={exports:{}};return e(t,t.exports),t.exports}var S0,C0,D0=function(e){return e&&e.Math==Math&&e},A0=D0("object"==typeof globalThis&&globalThis)||D0("object"==typeof window&&window)||D0("object"==typeof self&&self)||D0("object"==typeof E0&&E0)||function(){return this}()||Function("return this")(),O0=function(e){try{return!!e()}catch(e){return!0}},x0=!O0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),T0=Function.prototype.call,N0=T0.bind?T0.bind(T0):function(){return T0.apply(T0,arguments)},k0={}.propertyIsEnumerable,B0=Object.getOwnPropertyDescriptor,I0={f:B0&&!k0.call({1:2},1)?function(e){var t=B0(this,e);return!!t&&t.enumerable}:k0},F0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},P0=Function.prototype,_0=P0.bind,R0=P0.call,L0=_0&&_0.bind(R0),j0=_0?function(e){return e&&L0(R0,e)}:function(e){return e&&function(){return R0.apply(e,arguments)}},M0=j0({}.toString),z0=j0("".slice),H0=function(e){return z0(M0(e),8,-1)},U0=A0.Object,$0=j0("".split),V0=O0((function(){return!U0("z").propertyIsEnumerable(0)}))?function(e){return"String"==H0(e)?$0(e,""):U0(e)}:U0,G0=A0.TypeError,W0=function(e){if(null==e)throw G0("Can't call method on "+e);return e},q0=function(e){return V0(W0(e))},K0=function(e){return"function"==typeof e},Y0=function(e){return"object"==typeof e?null!==e:K0(e)},X0=function(e){return K0(e)?e:void 0},Z0=function(e,t){return arguments.length<2?X0(A0[e]):A0[e]&&A0[e][t]},J0=j0({}.isPrototypeOf),Q0=Z0("navigator","userAgent")||"",e1=A0.process,t1=A0.Deno,n1=e1&&e1.versions||t1&&t1.version,r1=n1&&n1.v8;r1&&(C0=(S0=r1.split("."))[0]>0&&S0[0]<4?1:+(S0[0]+S0[1])),!C0&&Q0&&(!(S0=Q0.match(/Edge\/(\d+)/))||S0[1]>=74)&&(S0=Q0.match(/Chrome\/(\d+)/))&&(C0=+S0[1]);var o1=C0,i1=!!Object.getOwnPropertySymbols&&!O0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o1&&o1<41})),a1=i1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,u1=A0.Object,s1=a1?function(e){return"symbol"==typeof e}:function(e){var t=Z0("Symbol");return K0(t)&&J0(t.prototype,u1(e))},l1=A0.String,c1=function(e){try{return l1(e)}catch(e){return"Object"}},f1=A0.TypeError,d1=function(e){if(K0(e))return e;throw f1(c1(e)+" is not a function")},p1=function(e,t){var n=e[t];return null==n?void 0:d1(n)},h1=A0.TypeError,v1=Object.defineProperty,g1=function(e,t){try{v1(A0,e,{value:t,configurable:!0,writable:!0})}catch(n){A0[e]=t}return t},y1=A0["__core-js_shared__"]||g1("__core-js_shared__",{}),m1=w0((function(e){(e.exports=function(e,t){return y1[e]||(y1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),b1=A0.Object,E1=function(e){return b1(W0(e))},w1=j0({}.hasOwnProperty),S1=Object.hasOwn||function(e,t){return w1(E1(e),t)},C1=0,D1=Math.random(),A1=j0(1..toString),O1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+A1(++C1+D1,36)},x1=m1("wks"),T1=A0.Symbol,N1=T1&&T1.for,k1=a1?T1:T1&&T1.withoutSetter||O1,B1=function(e){if(!S1(x1,e)||!i1&&"string"!=typeof x1[e]){var t="Symbol."+e;i1&&S1(T1,e)?x1[e]=T1[e]:x1[e]=a1&&N1?N1(t):k1(t)}return x1[e]},I1=A0.TypeError,F1=B1("toPrimitive"),P1=function(e){var t=function(e,t){if(!Y0(e)||s1(e))return e;var n,r=p1(e,F1);if(r){if(void 0===t&&(t="default"),n=N0(r,e,t),!Y0(n)||s1(n))return n;throw I1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&K0(n=e.toString)&&!Y0(r=N0(n,e)))return r;if(K0(n=e.valueOf)&&!Y0(r=N0(n,e)))return r;if("string"!==t&&K0(n=e.toString)&&!Y0(r=N0(n,e)))return r;throw h1("Can't convert object to primitive value")}(e,t)}(e,"string");return s1(t)?t:t+""},_1=A0.document,R1=Y0(_1)&&Y0(_1.createElement),L1=function(e){return R1?_1.createElement(e):{}},j1=!x0&&!O0((function(){return 7!=Object.defineProperty(L1("div"),"a",{get:function(){return 7}}).a})),M1=Object.getOwnPropertyDescriptor,z1={f:x0?M1:function(e,t){if(e=q0(e),t=P1(t),j1)try{return M1(e,t)}catch(e){}if(S1(e,t))return F0(!N0(I0.f,e,t),e[t])}},H1=A0.String,U1=A0.TypeError,$1=function(e){if(Y0(e))return e;throw U1(H1(e)+" is not an object")},V1=A0.TypeError,G1=Object.defineProperty,W1={f:x0?G1:function(e,t,n){if($1(e),t=P1(t),$1(n),j1)try{return G1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw V1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},q1=x0?function(e,t,n){return W1.f(e,t,F0(1,n))}:function(e,t,n){return e[t]=n,e},K1=j0(Function.toString);K0(y1.inspectSource)||(y1.inspectSource=function(e){return K1(e)});var Y1,X1,Z1,J1=y1.inspectSource,Q1=A0.WeakMap,e2=K0(Q1)&&/native code/.test(J1(Q1)),t2=m1("keys"),n2=function(e){return t2[e]||(t2[e]=O1(e))},r2={},o2=A0.TypeError,i2=A0.WeakMap;if(e2||y1.state){var a2=y1.state||(y1.state=new i2),u2=j0(a2.get),s2=j0(a2.has),l2=j0(a2.set);Y1=function(e,t){if(s2(a2,e))throw new o2("Object already initialized");return t.facade=e,l2(a2,e,t),t},X1=function(e){return u2(a2,e)||{}},Z1=function(e){return s2(a2,e)}}else{var c2=n2("state");r2[c2]=!0,Y1=function(e,t){if(S1(e,c2))throw new o2("Object already initialized");return t.facade=e,q1(e,c2,t),t},X1=function(e){return S1(e,c2)?e[c2]:{}},Z1=function(e){return S1(e,c2)}}var f2={set:Y1,get:X1,has:Z1,enforce:function(e){return Z1(e)?X1(e):Y1(e,{})},getterFor:function(e){return function(t){var n;if(!Y0(t)||(n=X1(t)).type!==e)throw o2("Incompatible receiver, "+e+" required");return n}}},d2=Function.prototype,p2=x0&&Object.getOwnPropertyDescriptor,h2=S1(d2,"name"),v2={EXISTS:h2,PROPER:h2&&"something"===function(){}.name,CONFIGURABLE:h2&&(!x0||x0&&p2(d2,"name").configurable)},g2=w0((function(e){var t=v2.CONFIGURABLE,n=f2.get,r=f2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;K0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!S1(i,"name")||t&&i.name!==f)&&q1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==A0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:q1(e,n,i)):l?e[n]=i:g1(n,i)})(Function.prototype,"toString",(function(){return K0(this)&&n(this).source||J1(this)}))})),y2=Math.ceil,m2=Math.floor,b2=function(e){var t=+e;return t!=t||0===t?0:(t>0?m2:y2)(t)},E2=Math.max,w2=Math.min,S2=function(e,t){var n=b2(e);return n<0?E2(n+t,0):w2(n,t)},C2=Math.min,D2=function(e){return e>0?C2(b2(e),9007199254740991):0},A2=function(e){return D2(e.length)},O2=function(e){return function(t,n,r){var o,i=q0(t),a=A2(i),u=S2(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},x2=(O2(!0),O2(!1)),T2=j0([].push),N2=function(e,t){var n,r=q0(e),o=0,i=[];for(n in r)!S1(r2,n)&&S1(r,n)&&T2(i,n);for(;t.length>o;)S1(r,n=t[o++])&&(~x2(i,n)||T2(i,n));return i},k2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B2=k2.concat("length","prototype"),I2={f:Object.getOwnPropertyNames||function(e){return N2(e,B2)}},F2={f:Object.getOwnPropertySymbols},P2=j0([].concat),_2=Z0("Reflect","ownKeys")||function(e){var t=I2.f($1(e)),n=F2.f;return n?P2(t,n(e)):t},R2=function(e,t){for(var n=_2(t),r=W1.f,o=z1.f,i=0;i<n.length;i++){var a=n[i];S1(e,a)||r(e,a,o(t,a))}},L2=/#|\.prototype\./,j2=function(e,t){var n=z2[M2(e)];return n==U2||n!=H2&&(K0(t)?O0(t):!!t)},M2=j2.normalize=function(e){return String(e).replace(L2,".").toLowerCase()},z2=j2.data={},H2=j2.NATIVE="N",U2=j2.POLYFILL="P",$2=j2,V2=z1.f,G2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?A0:l?A0[u]||g1(u,{}):(A0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=V2(n,r))&&a.value:n[r],!$2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;R2(i,o)}(e.sham||o&&o.sham)&&q1(i,"sham",!0),g2(n,r,i,e)}},W2={};W2[B1("toStringTag")]="z";var q2="[object z]"===String(W2),K2=B1("toStringTag"),Y2=A0.Object,X2="Arguments"==H0(function(){return arguments}()),Z2=q2?H0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Y2(e),K2))?n:X2?H0(t):"Object"==(r=H0(t))&&K0(t.callee)?"Arguments":r},J2=A0.String,Q2=function(e){if("Symbol"===Z2(e))throw TypeError("Cannot convert a Symbol value to a string");return J2(e)},e4=/"/g,t4=j0("".replace);G2({target:"String",proto:!0,forced:("anchor",O0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=Q2(W0(this)),r="<a",(r+=' name="'+t4(Q2(t),e4,""")+'"')+">"+n+"</a>";var t,n,r}});var n4,r4=function(){var e=$1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},o4=A0.RegExp,i4=O0((function(){var e=o4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a4=i4||O0((function(){return!o4("a","y").sticky})),u4={BROKEN_CARET:i4||O0((function(){var e=o4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:a4,UNSUPPORTED_Y:i4},s4=Object.keys||function(e){return N2(e,k2)},l4=x0?Object.defineProperties:function(e,t){$1(e);for(var n,r=q0(t),o=s4(t),i=o.length,a=0;i>a;)W1.f(e,n=o[a++],r[n]);return e},c4=Z0("document","documentElement"),f4=n2("IE_PROTO"),d4=function(){},p4=function(e){return"<script>"+e+"<\/script>"},h4=function(e){e.write(p4("")),e.close();var t=e.parentWindow.Object;return e=null,t},v4=function(){try{n4=new ActiveXObject("htmlfile")}catch(e){}var e,t;v4="undefined"!=typeof document?document.domain&&n4?h4(n4):((t=L1("iframe")).style.display="none",c4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p4("document.F=Object")),e.close(),e.F):h4(n4);for(var n=k2.length;n--;)delete v4.prototype[k2[n]];return v4()};r2[f4]=!0;var g4,y4,m4=Object.create||function(e,t){var n;return null!==e?(d4.prototype=$1(e),n=new d4,d4.prototype=null,n[f4]=e):n=v4(),void 0===t?n:l4(n,t)},b4=A0.RegExp,E4=O0((function(){var e=b4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),w4=A0.RegExp,S4=O0((function(){var e=w4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C4=f2.get,D4=m1("native-string-replace",String.prototype.replace),A4=RegExp.prototype.exec,O4=A4,x4=j0("".charAt),T4=j0("".indexOf),N4=j0("".replace),k4=j0("".slice),B4=(y4=/b*/g,N0(A4,g4=/a/,"a"),N0(A4,y4,"a"),0!==g4.lastIndex||0!==y4.lastIndex),I4=u4.BROKEN_CARET,F4=void 0!==/()??/.exec("")[1];(B4||F4||I4||E4||S4)&&(O4=function(e){var t,n,r,o,i,a,u,s=this,l=C4(s),c=Q2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=N0(O4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=I4&&s.sticky,h=N0(r4,s),v=s.source,g=0,y=c;if(p&&(h=N4(h,"y",""),-1===T4(h,"g")&&(h+="g"),y=k4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==x4(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),F4&&(n=new RegExp("^"+v+"$(?!\\s)",h)),B4&&(r=s.lastIndex),o=N0(A4,p?n:s,y),p?o?(o.input=k4(o.input,g),o[0]=k4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F4&&o&&o.length>1&&N0(D4,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=m4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var P4=O4;G2({target:"RegExp",proto:!0,forced:/./.exec!==P4},{exec:P4});var _4=Array.isArray||function(e){return"Array"==H0(e)},R4=function(){},L4=[],j4=Z0("Reflect","construct"),M4=/^\s*(?:class|function)\b/,z4=j0(M4.exec),H4=!M4.exec(R4),U4=function(e){if(!K0(e))return!1;try{return j4(R4,L4,e),!0}catch(e){return!1}},$4=!j4||O0((function(){var e;return U4(U4.call)||!U4(Object)||!U4((function(){e=!0}))||e}))?function(e){if(!K0(e))return!1;switch(Z2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return H4||!!z4(M4,J1(e))}:U4,V4=function(e,t,n){var r=P1(t);r in e?W1.f(e,r,F0(0,n)):e[r]=n},G4=B1("species"),W4=function(e){return o1>=51||!O0((function(){var t=[];return(t.constructor={})[G4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},q4=j0([].slice),K4=W4("slice"),Y4=B1("species"),X4=A0.Array,Z4=Math.max;function J4(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Q4(e){var t=e.selection;if(null==t)return!1;var n=J4(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=J4(n,2)[1],o=Nf.start(e,r);if($f.equals(t.anchor,o))return!0}return!1}function e6(e,t){var n,r,o=Nf.nodes(e,{at:t,match:function(e){return"table"===Qx.getNodeType(e)}}),i=!1;try{for(var a=
|
|
68
|
-
/*! *****************************************************************************
|
|
69
|
-
Copyright (c) Microsoft Corporation.
|
|
70
|
-
|
|
71
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
72
|
-
purpose with or without fee is hereby granted.
|
|
73
|
-
|
|
74
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
75
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
76
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
77
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
78
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
79
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
80
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
81
|
-
***************************************************************************** */
|
|
82
|
-
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}G2({target:"Array",proto:!0,forced:!K4},{slice:function(e,t){var n,r,o,i=q0(this),a=A2(i),u=S2(e,a),s=S2(void 0===t?a:t,a);if(_4(i)&&(n=i.constructor,($4(n)&&(n===X4||_4(n.prototype))||Y0(n)&&null===(n=n[Y4]))&&(n=void 0),n===X4||void 0===n))return q4(i,u,s);for(r=new(void 0===n?X4:n)(Z4(s-u,0)),o=0;u<s;u++,o++)u in i&&V4(r,o,i[u]);return r.length=o,r}});var t6=j0(j0.bind),n6=B1("species"),r6=A0.Array,o6=function(e,t){return new(function(e){var t;return _4(e)&&(t=e.constructor,($4(t)&&(t===r6||_4(t.prototype))||Y0(t)&&null===(t=t[n6]))&&(t=void 0)),void 0===t?r6:t}(e))(0===t?0:t)},i6=j0([].push),a6=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=E1(s),v=V0(h),g=function(e,t){return d1(e),void 0===t?e:t6?t6(e,t):function(){return e.apply(t,arguments)}}(l,c),y=A2(v),m=0,b=f||o6,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:i6(E,d)}else switch(e){case 4:return!1;case 7:i6(E,d)}return i?-1:r||o?o:E}},u6={forEach:a6(0),map:a6(1),filter:a6(2),some:a6(3),every:a6(4),find:a6(5),findIndex:a6(6),filterReject:a6(7)},s6=u6.map;G2({target:"Array",proto:!0,forced:!W4("map")},{map:function(e){return s6(this,e,arguments.length>1?arguments[1]:void 0)}});var l6=q2?{}.toString:function(){return"[object "+Z2(this)+"]"};function c6(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function f6(e){return c6(e).every((function(e){return!!e.isHeader}))}q2||g2(Object.prototype,"toString",l6,{unsafe:!0});var d6=v2.PROPER,p6=RegExp.prototype,h6=p6.toString,v6=j0(r4),g6=O0((function(){return"/a/b"!=h6.call({source:"a",flags:"b"})})),y6=d6&&"toString"!=h6.name;(g6||y6)&&g2(RegExp.prototype,"toString",(function(){var e=$1(this),t=Q2(e.source),n=e.flags;return"/"+t+"/"+Q2(void 0===n&&J0(p6,e)&&!("flags"in p6)?v6(e):n)}),{unsafe:!0});var m6=B1("unscopables"),b6=Array.prototype;null==b6[m6]&&W1.f(b6,m6,{configurable:!0,value:m4(null)});var E6=u6.find,w6=!0;"find"in[]&&Array(1).find((function(){w6=!1})),G2({target:"Array",proto:!0,forced:w6},{find:function(e){return E6(this,e,arguments.length>1?arguments[1]:void 0)}}),b6[m6].find=!0;var S6=Function.prototype,C6=S6.apply,D6=S6.bind,A6=S6.call,O6="object"==typeof Reflect&&Reflect.apply||(D6?A6.bind(C6):function(){return A6.apply(C6,arguments)}),x6=B1("species"),T6=RegExp.prototype,N6=function(e,t,n,r){var o=B1(e),i=!O0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!O0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[x6]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=j0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=j0(e),s=t.exec;return s===P4||s===T6.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));g2(String.prototype,e,s[0]),g2(T6,o,s[1])}r&&q1(T6[o],"sham",!0)},k6=B1("match"),B6=A0.TypeError,I6=B1("species"),F6=j0("".charAt),P6=j0("".charCodeAt),_6=j0("".slice),R6=function(e){return function(t,n){var r,o,i=Q2(W0(t)),a=b2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=P6(i,a))<55296||r>56319||a+1===u||(o=P6(i,a+1))<56320||o>57343?e?F6(i,a):r:e?_6(i,a,a+2):o-56320+(r-55296<<10)+65536}},L6=(R6(!1),R6(!0)),j6=function(e,t,n){return t+(n?L6(e,t).length:1)},M6=A0.Array,z6=Math.max,H6=function(e,t,n){for(var r=A2(e),o=S2(t,r),i=S2(void 0===n?r:n,r),a=M6(z6(i-o,0)),u=0;o<i;o++,u++)V4(a,u,e[o]);return a.length=u,a},U6=A0.TypeError,$6=function(e,t){var n=e.exec;if(K0(n)){var r=N0(n,e,t);return null!==r&&$1(r),r}if("RegExp"===H0(e))return N0(P4,e,t);throw U6("RegExp#exec called on incompatible receiver")},V6=u4.UNSUPPORTED_Y,G6=Math.min,W6=[].push,q6=j0(/./.exec),K6=j0(W6),Y6=j0("".slice);N6("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Q2(W0(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Y0(r=e)||!(void 0!==(o=r[k6])?o:"RegExp"==H0(r)))return N0(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=N0(P4,p,i))&&!((s=p.lastIndex)>d&&(K6(c,Y6(i,d,u.index)),u.length>1&&u.index<i.length&&O6(W6,c,H6(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&q6(p,"")||K6(c,""):K6(c,Y6(i,d)),c.length>a?H6(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:N0(t,this,e,n)}:t,[function(t,n){var o=W0(this),i=null==t?void 0:p1(t,e);return i?N0(i,t,o,n):N0(r,Q2(o),t,n)},function(e,o){var i=$1(this),a=Q2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=$1(e).constructor;return void 0===r||null==(n=$1(r)[I6])?t:function(e){if($4(e))return e;throw B6(c1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(V6?"g":"y"),f=new s(V6?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===$6(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=V6?0:h;var g,y=$6(f,V6?Y6(a,h):a);if(null===y||(g=G6(D2(f.lastIndex+(V6?h:0)),a.length))===p)h=j6(a,h,l);else{if(K6(v,Y6(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(K6(v,y[m]),v.length===d)return v;h=p=g}}return K6(v,Y6(a,p)),v}]}),!!O0((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),V6);var X6="\t\n\v\f\r \u2028\u2029\ufeff",Z6=j0("".replace),J6="["+X6+"]",Q6=RegExp("^"+J6+J6+"*"),e3=RegExp(J6+J6+"*$"),t3=function(e){return function(t){var n=Q2(W0(t));return 1&e&&(n=Z6(n,Q6,"")),2&e&&(n=Z6(n,e3,"")),n}},n3={start:t3(1),end:t3(2),trim:t3(3)},r3=v2.PROPER,o3=n3.trim;function i3(e){return e.length?e[0].tagName.toLowerCase():""}G2({target:"String",proto:!0,forced:function(e){return O0((function(){return!!X6[e]()||"
"!=="
"[e]()||r3&&X6[e].name!==e}))}("trim")},{trim:function(){return o3(this)}}),G2({global:!0},{globalThis:A0}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),Gp&&(Mp.fn.dataset=Gp),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),fh&&(Mp.fn.children=fh),th&&(Mp.fn.each=th),ch&&(Mp.fn.find=ch);var a3=!1,u3=0,s3=0,l3=null,c3=null,f3=Mp("body");function d3(e){a3=!1,c3=null,l3=null,f3.off("mousemove",p3),f3.off("mouseup",d3)}f3.on("mousedown",(function(e){var t=e.target;if(("TH"===t.tagName||"TD"===t.tagName)&&"col-resize"===t.style.cursor){t.style.cursor="auto",e.preventDefault(),a3=!0;var n=e.clientX;u3=n;var r=t.getBoundingClientRect().width;s3=r,f3.on("mousemove",p3),f3.on("mouseup",d3)}}));var p3=ev((function(e){if(a3&&null!=c3&&null!=l3){e.preventDefault();var t=e.clientX,n=s3+(t-u3);(n=Math.floor(100*n)/100)<30&&(n=30),md.setNodes(c3,{width:n.toString()},{at:l3})}}),100),h3={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(qf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Qx.findPath(e,t),a=Nf.start(e,i),u=Nf.end(e,i),s=$f.compare(r,u)<=0&&$f.compare(r,a)>=0,l=$f.compare(o,u)<=0&&$f.compare(o,a)>=0;return!!(s&&l&&Mf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e.width,i=void 0===o?"auto":o,a=Fv("div",{className:"table-container","data-selected":Qx.isNodeSelected(n,e),on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){var r=Qx.findPath(n,e),o=Nf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Fv("table",{width:i,contentEditable:r},Fv("colgroup",{contentEditable:!1},c6(e).map((function(e){var t=e.width;return Fv("col",{width:void 0===t?"auto":t})}))),Fv("tbody",null,t)));return a}},v3={type:"table-row",renderElem:function(e,t,n){return Fv("tr",null,t)}},g3={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Qx.getParentNode(e,t);if(null==n)return!1;var r=Qx.getParentNode(e,n);return null!=r&&c6(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l;if(!r)return Fv("td",{colSpan:a,rowSpan:s},t);var f=Fv(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:ev((function(t){var r=this.elm;if(null!=r){var o=r.getBoundingClientRect(),i=o.left,a=o.width,u=o.top,s=o.height,l=t.clientX,c=t.clientY;a3||(l>i+a-5&&l<i+a&&c>u&&c<u+s?(r.style.cursor="col-resize",c3=n,l3=Qx.findPath(n,e)):a3||(r.style.cursor="auto",c3=null,l3=null))}}),100)}},t);return f}},y3={selector:"table",preParseHtml:function(e){var t=Mp(e);if("table"!==i3(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},m3=u6.filter;G2({target:"Array",proto:!0,forced:!W4("filter")},{filter:function(e){return m3(this,e,arguments.length>1?arguments[1]:void 0)}});var b3=Math.floor,E3=j0("".charAt),w3=j0("".replace),S3=j0("".slice),C3=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,D3=/\$([$&'`]|\d{1,2})/g,A3=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=D3;return void 0!==o&&(o=E1(o),s=C3),w3(i,s,(function(i,s){var l;switch(E3(s,0)){case"$":return"$";case"&":return e;case"`":return S3(t,0,n);case"'":return S3(t,a);case"<":l=o[S3(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=b3(c/10);return 0===f?i:f<=u?void 0===r[f-1]?E3(s,1):r[f-1]+E3(s,1):i}l=r[c-1]}return void 0===l?"":l}))},O3=B1("replace"),x3=Math.max,T3=Math.min,N3=j0([].concat),k3=j0([].push),B3=j0("".indexOf),I3=j0("".slice),F3="$0"==="a".replace(/./,"$0"),P3=!!/./[O3]&&""===/./[O3]("a","$0");N6("replace",(function(e,t,n){var r=P3?"$":"$0";return[function(e,n){var r=W0(this),o=null==e?void 0:p1(e,O3);return o?N0(o,e,r,n):N0(t,Q2(r),e,n)},function(e,o){var i=$1(this),a=Q2(e);if("string"==typeof o&&-1===B3(o,r)&&-1===B3(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=K0(o);s||(o=Q2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=$6(i,a);if(null===d)break;if(k3(f,d),!l)break;""===Q2(d[0])&&(i.lastIndex=j6(a,D2(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Q2((d=f[g])[0]),m=x3(T3(b2(d.index),a.length),0),b=[],E=1;E<d.length;E++)k3(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=N3([y],b,m,a);void 0!==w&&k3(S,w);var C=Q2(O6(o,void 0,S))}else C=A3(y,a,m,b,w,o);m>=v&&(h+=I3(a,v,m)+C,v=m+y.length)}return h+I3(a,v)}]}),!!O0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!F3||P3);var _3={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===i3(r),colSpan:o,rowSpan:i,width:a,children:t}}},R3={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===Qx.getNodeType(e)}))}}},L3={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===Qx.getNodeType(e)}))}}},j3=function(){function e(){this.title=UF("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!Qx.getSelectedElems(e).some((function(t){var n=Qx.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Mp('<div class="w-e-panel-content-table"></div>'),r=Mp("<span>0 × 0</span>"),o=Mp("<table></table>"),i=0;i<10;i++){for(var a=Mp("<tr></tr>"),u=0;u<10;u++){var s=Mp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Mp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Mp(e).children().each((function(e){var t=Mp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Mp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){Qx.isSelectedEmptyParagraph(e)&&md.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++){var a={type:"table-cell",children:[{text:""}]};0===r&&(a.isHeader=!0),o.push(a)}n.push({type:"table-row",children:o})}return{type:"table",width:"auto",children:n}}(r,o);md.insertNodes(e,i,{mode:"highest"})}},e}(),M3=function(){function e(){this.title=UF("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Qx.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{mode:"highest"})},e}(),z3=function(){function e(){this.title=UF("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J4(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"table-cell")},universal:!0}),1),r=J4(n[0],2),o=r[0],i=r[1],a=Qx.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){for(var s={type:"table-row",children:[]},l=0;l<u;l++)s.children.push({type:"table-cell",children:[{text:""}]});var c=Mf.parent(i),f=Mf.next(c);md.insertNodes(e,s,{at:f})}}},e}(),H3=function(){function e(){this.title=UF("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J4(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"table-row")},universal:!0}),1),r=J4(n[0],2),o=r[0],i=r[1],a=Qx.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?md.removeNodes(e,{mode:"highest"}):md.removeNodes(e,{at:i})}},e}(),U3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$3=L1("span").classList,V3=$3&&$3.constructor&&$3.constructor.prototype,G3=V3===Object.prototype?void 0:V3,W3=u6.forEach,q3=function(e,t){var n=[].forEach;return!!n&&O0((function(){n.call(null,(function(){throw 1}),1)}))}(),K3=q3?[].forEach:function(e){return W3(this,e,arguments.length>1?arguments[1]:void 0)},Y3=function(e){if(e&&e.forEach!==K3)try{q1(e,"forEach",K3)}catch(t){e.forEach=K3}};for(var X3 in U3)U3[X3]&&Y3(A0[X3]&&A0[X3].prototype);Y3(G3);var Z3=function(){function e(){this.title=UF("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J4(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"table-cell")},universal:!0}),1),r=J4(n[0],2),o=r[0],i=r[1],a=Qx.getParentNode(e,o);if(null!=a){var u=Qx.getParentNode(e,a);null!=u&&(u.children||[]).forEach((function(t,n){Cf.isElement(t)&&(t.children||[]).forEach((function(t){var r=Qx.findPath(e,t);if(r.length===i.length&&b0(r.slice(-1),i.slice(-1))){var o={type:"table-cell",children:[{text:""}]};0===n&&f6(u)&&(o.isHeader=!0),md.insertNodes(e,o,{at:r})}}))}))}}},e}(),J3=function(){function e(){this.title=UF("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=J4(Nf.nodes(e,{match:function(e){return Qx.checkNodeType(e,"table-cell")},universal:!0}),1),r=J4(n[0],2),o=r[0],i=r[1],a=Qx.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)md.removeNodes(e,{mode:"highest"});else{var s=Qx.getParentNode(e,a);null!=s&&(s.children||[]).forEach((function(t){Cf.isElement(t)&&(t.children||[]).forEach((function(t){var n=Qx.findPath(e,t);n.length===i.length&&b0(n.slice(-1),i.slice(-1))&&md.removeNodes(e,{at:n})}))}))}}},e}(),Q3=function(){function e(){this.title=UF("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Qx.getSelectedNodeByType(e,"table");return null!=t&&f6(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Qx.getSelectedNodeByType(e,"table");null!=r&&c6(r).forEach((function(t){return md.setNodes(e,{isHeader:n},{at:Qx.findPath(e,t)})}))}},e}(),e5=function(){function e(){this.title=UF("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Qx.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==Qx.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};md.setNodes(e,n,{mode:"highest"})}},e}(),t5={renderElems:[h3,v3,g3],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(void 0===l?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[y3],parseElemsHtml:[_3,R3,L3],menus:[{key:"insertTable",factory:function(){return new j3}},{key:"deleteTable",factory:function(){return new M3}},{key:"insertTableRow",factory:function(){return new z3}},{key:"deleteTableRow",factory:function(){return new H3}},{key:"insertTableCol",factory:function(){return new Z3}},{key:"deleteTableCol",factory:function(){return new J3}},{key:"tableHeader",factory:function(){return new Q3}},{key:"tableFullWidth",factory:function(){return new e5}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==Qx.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!Q4(s)){var t=s.selection;if(t){var r=Nf.before(s,t);if(r){var o=e6(s,r),i=e6(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(Qx.getSelectedNodeByType(s,"table")){var n=Nf.above(e);Qx.checkNodeType(n[0],"table-cell")&&md.select(e,n[1]);var r=Nf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Nf.above(e,{at:r[1]}))&&void 0!==t?t:r),md.select(e,r[1]);else{var o=s.children||[],i=o.length;if(Qx.checkNodeType(o[i-1],"table")){var u=Qx.genEmptyParagraph();md.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){Q4(s)||r(e)},s.normalizeNode=function(e){var t=J4(e,2),n=t[0],r=t[1];if("table"!==Qx.getNodeType(n))return o([n,r]);if(Qx.isLastNode(s,n)){var i=Qx.genEmptyParagraph();md.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=Qx.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Nf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=Qx.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Mf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==_f.string(t).length){var o=Qx.findPath(s,t),i={anchor:Nf.start(s,o),focus:Nf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},s}};MF("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),MF("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});
|
|
83
|
-
/*! *****************************************************************************
|
|
84
|
-
Copyright (c) Microsoft Corporation.
|
|
85
|
-
|
|
86
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
87
|
-
purpose with or without fee is hereby granted.
|
|
88
|
-
|
|
89
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
90
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
91
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
92
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
93
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
94
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
95
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
96
|
-
***************************************************************************** */
|
|
97
|
-
var n5=function(){return n5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n5.apply(this,arguments)};function r5(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function o5(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function i5(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function a5(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var u5="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s5(e){var t={exports:{}};return e(t,t.exports),t.exports}var l5,c5,f5=function(e){return e&&e.Math==Math&&e},d5=f5("object"==typeof globalThis&&globalThis)||f5("object"==typeof window&&window)||f5("object"==typeof self&&self)||f5("object"==typeof u5&&u5)||function(){return this}()||Function("return this")(),p5=function(e){try{return!!e()}catch(e){return!0}},h5=!p5((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v5=Function.prototype.call,g5=v5.bind?v5.bind(v5):function(){return v5.apply(v5,arguments)},y5={}.propertyIsEnumerable,m5=Object.getOwnPropertyDescriptor,b5={f:m5&&!y5.call({1:2},1)?function(e){var t=m5(this,e);return!!t&&t.enumerable}:y5},E5=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},w5=Function.prototype,S5=w5.bind,C5=w5.call,D5=S5&&S5.bind(C5),A5=S5?function(e){return e&&D5(C5,e)}:function(e){return e&&function(){return C5.apply(e,arguments)}},O5=A5({}.toString),x5=A5("".slice),T5=function(e){return x5(O5(e),8,-1)},N5=d5.Object,k5=A5("".split),B5=p5((function(){return!N5("z").propertyIsEnumerable(0)}))?function(e){return"String"==T5(e)?k5(e,""):N5(e)}:N5,I5=d5.TypeError,F5=function(e){if(null==e)throw I5("Can't call method on "+e);return e},P5=function(e){return B5(F5(e))},_5=function(e){return"function"==typeof e},R5=function(e){return"object"==typeof e?null!==e:_5(e)},L5=function(e){return _5(e)?e:void 0},j5=function(e,t){return arguments.length<2?L5(d5[e]):d5[e]&&d5[e][t]},M5=A5({}.isPrototypeOf),z5=j5("navigator","userAgent")||"",H5=d5.process,U5=d5.Deno,$5=H5&&H5.versions||U5&&U5.version,V5=$5&&$5.v8;V5&&(c5=(l5=V5.split("."))[0]>0&&l5[0]<4?1:+(l5[0]+l5[1])),!c5&&z5&&(!(l5=z5.match(/Edge\/(\d+)/))||l5[1]>=74)&&(l5=z5.match(/Chrome\/(\d+)/))&&(c5=+l5[1]);var G5=c5,W5=!!Object.getOwnPropertySymbols&&!p5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&G5&&G5<41})),q5=W5&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,K5=d5.Object,Y5=q5?function(e){return"symbol"==typeof e}:function(e){var t=j5("Symbol");return _5(t)&&M5(t.prototype,K5(e))},X5=d5.String,Z5=function(e){try{return X5(e)}catch(e){return"Object"}},J5=d5.TypeError,Q5=function(e){if(_5(e))return e;throw J5(Z5(e)+" is not a function")},e8=function(e,t){var n=e[t];return null==n?void 0:Q5(n)},t8=d5.TypeError,n8=Object.defineProperty,r8=function(e,t){try{n8(d5,e,{value:t,configurable:!0,writable:!0})}catch(n){d5[e]=t}return t},o8=d5["__core-js_shared__"]||r8("__core-js_shared__",{}),i8=s5((function(e){(e.exports=function(e,t){return o8[e]||(o8[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),a8=d5.Object,u8=function(e){return a8(F5(e))},s8=A5({}.hasOwnProperty),l8=Object.hasOwn||function(e,t){return s8(u8(e),t)},c8=0,f8=Math.random(),d8=A5(1..toString),p8=function(e){return"Symbol("+(void 0===e?"":e)+")_"+d8(++c8+f8,36)},h8=i8("wks"),v8=d5.Symbol,g8=v8&&v8.for,y8=q5?v8:v8&&v8.withoutSetter||p8,m8=function(e){if(!l8(h8,e)||!W5&&"string"!=typeof h8[e]){var t="Symbol."+e;W5&&l8(v8,e)?h8[e]=v8[e]:h8[e]=q5&&g8?g8(t):y8(t)}return h8[e]},b8=d5.TypeError,E8=m8("toPrimitive"),w8=function(e){var t=function(e,t){if(!R5(e)||Y5(e))return e;var n,r=e8(e,E8);if(r){if(void 0===t&&(t="default"),n=g5(r,e,t),!R5(n)||Y5(n))return n;throw b8("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&_5(n=e.toString)&&!R5(r=g5(n,e)))return r;if(_5(n=e.valueOf)&&!R5(r=g5(n,e)))return r;if("string"!==t&&_5(n=e.toString)&&!R5(r=g5(n,e)))return r;throw t8("Can't convert object to primitive value")}(e,t)}(e,"string");return Y5(t)?t:t+""},S8=d5.document,C8=R5(S8)&&R5(S8.createElement),D8=function(e){return C8?S8.createElement(e):{}},A8=!h5&&!p5((function(){return 7!=Object.defineProperty(D8("div"),"a",{get:function(){return 7}}).a})),O8=Object.getOwnPropertyDescriptor,x8={f:h5?O8:function(e,t){if(e=P5(e),t=w8(t),A8)try{return O8(e,t)}catch(e){}if(l8(e,t))return E5(!g5(b5.f,e,t),e[t])}},T8=d5.String,N8=d5.TypeError,k8=function(e){if(R5(e))return e;throw N8(T8(e)+" is not an object")},B8=d5.TypeError,I8=Object.defineProperty,F8={f:h5?I8:function(e,t,n){if(k8(e),t=w8(t),k8(n),A8)try{return I8(e,t,n)}catch(e){}if("get"in n||"set"in n)throw B8("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},P8=h5?function(e,t,n){return F8.f(e,t,E5(1,n))}:function(e,t,n){return e[t]=n,e},_8=A5(Function.toString);_5(o8.inspectSource)||(o8.inspectSource=function(e){return _8(e)});var R8,L8,j8,M8=o8.inspectSource,z8=d5.WeakMap,H8=_5(z8)&&/native code/.test(M8(z8)),U8=i8("keys"),$8=function(e){return U8[e]||(U8[e]=p8(e))},V8={},G8=d5.TypeError,W8=d5.WeakMap;if(H8||o8.state){var q8=o8.state||(o8.state=new W8),K8=A5(q8.get),Y8=A5(q8.has),X8=A5(q8.set);R8=function(e,t){if(Y8(q8,e))throw new G8("Object already initialized");return t.facade=e,X8(q8,e,t),t},L8=function(e){return K8(q8,e)||{}},j8=function(e){return Y8(q8,e)}}else{var Z8=$8("state");V8[Z8]=!0,R8=function(e,t){if(l8(e,Z8))throw new G8("Object already initialized");return t.facade=e,P8(e,Z8,t),t},L8=function(e){return l8(e,Z8)?e[Z8]:{}},j8=function(e){return l8(e,Z8)}}var J8={set:R8,get:L8,has:j8,enforce:function(e){return j8(e)?L8(e):R8(e,{})},getterFor:function(e){return function(t){var n;if(!R5(t)||(n=L8(t)).type!==e)throw G8("Incompatible receiver, "+e+" required");return n}}},Q8=Function.prototype,e7=h5&&Object.getOwnPropertyDescriptor,t7=l8(Q8,"name"),n7={EXISTS:t7,PROPER:t7&&"something"===function(){}.name,CONFIGURABLE:t7&&(!h5||h5&&e7(Q8,"name").configurable)},r7=s5((function(e){var t=n7.CONFIGURABLE,n=J8.get,r=J8.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;_5(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!l8(i,"name")||t&&i.name!==f)&&P8(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==d5?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:P8(e,n,i)):l?e[n]=i:r8(n,i)})(Function.prototype,"toString",(function(){return _5(this)&&n(this).source||M8(this)}))})),o7=Math.ceil,i7=Math.floor,a7=function(e){var t=+e;return t!=t||0===t?0:(t>0?i7:o7)(t)},u7=Math.max,s7=Math.min,l7=function(e,t){var n=a7(e);return n<0?u7(n+t,0):s7(n,t)},c7=Math.min,f7=function(e){return e>0?c7(a7(e),9007199254740991):0},d7=function(e){return f7(e.length)},p7=function(e){return function(t,n,r){var o,i=P5(t),a=d7(i),u=l7(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},h7={includes:p7(!0),indexOf:p7(!1)},v7=h7.indexOf,g7=A5([].push),y7=function(e,t){var n,r=P5(e),o=0,i=[];for(n in r)!l8(V8,n)&&l8(r,n)&&g7(i,n);for(;t.length>o;)l8(r,n=t[o++])&&(~v7(i,n)||g7(i,n));return i},m7=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],b7=m7.concat("length","prototype"),E7={f:Object.getOwnPropertyNames||function(e){return y7(e,b7)}},w7={f:Object.getOwnPropertySymbols},S7=A5([].concat),C7=j5("Reflect","ownKeys")||function(e){var t=E7.f(k8(e)),n=w7.f;return n?S7(t,n(e)):t},D7=function(e,t){for(var n=C7(t),r=F8.f,o=x8.f,i=0;i<n.length;i++){var a=n[i];l8(e,a)||r(e,a,o(t,a))}},A7=/#|\.prototype\./,O7=function(e,t){var n=T7[x7(e)];return n==k7||n!=N7&&(_5(t)?p5(t):!!t)},x7=O7.normalize=function(e){return String(e).replace(A7,".").toLowerCase()},T7=O7.data={},N7=O7.NATIVE="N",k7=O7.POLYFILL="P",B7=O7,I7=x8.f,F7=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?d5:l?d5[u]||r8(u,{}):(d5[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=I7(n,r))&&a.value:n[r],!B7(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;D7(i,o)}(e.sham||o&&o.sham)&&P8(i,"sham",!0),r7(n,r,i,e)}},P7={};P7[m8("toStringTag")]="z";var _7="[object z]"===String(P7),R7=m8("toStringTag"),L7=d5.Object,j7="Arguments"==T5(function(){return arguments}()),M7=_7?T5:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=L7(e),R7))?n:j7?T5(t):"Object"==(r=T5(t))&&_5(t.callee)?"Arguments":r},z7=d5.String,H7=function(e){if("Symbol"===M7(e))throw TypeError("Cannot convert a Symbol value to a string");return z7(e)},U7="\t\n\v\f\r \u2028\u2029\ufeff",$7=A5("".replace),V7="["+U7+"]",G7=RegExp("^"+V7+V7+"*"),W7=RegExp(V7+V7+"*$"),q7=function(e){return function(t){var n=H7(F5(t));return 1&e&&(n=$7(n,G7,"")),2&e&&(n=$7(n,W7,"")),n}},K7={start:q7(1),end:q7(2),trim:q7(3)},Y7=n7.PROPER,X7=K7.trim;function Z7(e){return e.length?e[0].tagName.toLowerCase():""}function J7(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=Mp(e),i=r.width,a=void 0===i?"":i,u=r.height,s=void 0===u?"":u,l="";return a&&(l+="width: "+a+";"),s&&(l+="height: "+s+";"),o.attr("width",t),o.attr("height",n),o.attr("style",l),o[0].outerHTML}F7({target:"String",proto:!0,forced:("trim",p5((function(){return!!U7.trim()||"
"!=="
".trim()||Y7&&"trim"!==U7.trim.name})))},{trim:function(){return X7(this)}}),F7({global:!0},{globalThis:d5}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),sh&&(Mp.fn.parent=sh),Up&&(Mp.fn.hasClass=Up),ph&&(Mp.fn.empty=ph);var Q7,e9={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.key,c=void 0===l?"":l,f=o.width,d=void 0===f?"auto":f,p=o.height,h=void 0===p?"auto":p,v=o.style,g=void 0===v?{}:v,y=o.textAlign,m=void 0===y?"center":y,b=Qx.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:J7(a,d,h,g)})}else{var E=Fv("video",{key:c,poster:s,controls:!0,style:g},Fv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(E.data.width=d),"auto"!==h&&(E.data.height=h),r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return pv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},t9={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=J7(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},n9=Object.keys||function(e){return y7(e,m7)},r9=h5?Object.defineProperties:function(e,t){k8(e);for(var n,r=P5(t),o=n9(t),i=o.length,a=0;i>a;)F8.f(e,n=o[a++],r[n]);return e},o9=j5("document","documentElement"),i9=$8("IE_PROTO"),a9=function(){},u9=function(e){return"<script>"+e+"<\/script>"},s9=function(e){e.write(u9("")),e.close();var t=e.parentWindow.Object;return e=null,t},l9=function(){try{Q7=new ActiveXObject("htmlfile")}catch(e){}var e,t;l9="undefined"!=typeof document?document.domain&&Q7?s9(Q7):((t=D8("iframe")).style.display="none",o9.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(u9("document.F=Object")),e.close(),e.F):s9(Q7);for(var n=m7.length;n--;)delete l9.prototype[m7[n]];return l9()};V8[i9]=!0;var c9=Object.create||function(e,t){var n;return null!==e?(a9.prototype=k8(e),n=new a9,a9.prototype=null,n[i9]=e):n=l9(),void 0===t?n:r9(n,t)},f9=m8("unscopables"),d9=Array.prototype;null==d9[f9]&&F8.f(d9,f9,{configurable:!0,value:c9(null)});var p9=function(e){d9[f9][e]=!0},h9=h7.includes;F7({target:"Array",proto:!0},{includes:function(e){return h9(this,e,arguments.length>1?arguments[1]:void 0)}}),p9("includes");var v9={selector:"iframe,video,p",preParseHtml:function(e){var t=Mp(e),n=t;if("p"===Z7(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Mp(o))}}var a=Z7(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Mp('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return u.append(n),u[0]}},g9=A5(A5.bind),y9=function(e,t){return Q5(e),void 0===t?e:g9?g9(e,t):function(){return e.apply(t,arguments)}},m9=Array.isArray||function(e){return"Array"==T5(e)},b9=function(){},E9=[],w9=j5("Reflect","construct"),S9=/^\s*(?:class|function)\b/,C9=A5(S9.exec),D9=!S9.exec(b9),A9=function(e){if(!_5(e))return!1;try{return w9(b9,E9,e),!0}catch(e){return!1}},O9=!w9||p5((function(){var e;return A9(A9.call)||!A9(Object)||!A9((function(){e=!0}))||e}))?function(e){if(!_5(e))return!1;switch(M7(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return D9||!!C9(S9,M8(e))}:A9,x9=m8("species"),T9=d5.Array,N9=function(e,t){return new(function(e){var t;return m9(e)&&(t=e.constructor,(O9(t)&&(t===T9||m9(t.prototype))||R5(t)&&null===(t=t[x9]))&&(t=void 0)),void 0===t?T9:t}(e))(0===t?0:t)},k9=A5([].push),B9=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=u8(s),v=B5(h),g=y9(l,c),y=d7(v),m=0,b=f||N9,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:k9(E,d)}else switch(e){case 4:return!1;case 7:k9(E,d)}return i?-1:r||o?o:E}},I9={forEach:B9(0),map:B9(1),filter:B9(2),some:B9(3),every:B9(4),find:B9(5),findIndex:B9(6),filterReject:B9(7)},F9=I9.find,P9=!0;"find"in[]&&Array(1).find((function(){P9=!1})),F7({target:"Array",proto:!0,forced:P9},{find:function(e){return F9(this,e,arguments.length>1?arguments[1]:void 0)}}),p9("find");var _9=_7?{}.toString:function(){return"[object "+M7(this)+"]"};function R9(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}_7||r7(Object.prototype,"toString",_9,{unsafe:!0});var L9,j9,M9={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Mp(e),o="",i="",a="auto",u="auto",s={},l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",u=l.attr("height")||"auto",s=l.attr("style")||{},R9(o=l[0].outerHTML,i,a,u,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",R9(o,i=c.attr("poster")||"",a,u,s=l.attr("style")||{})}},z9=function(){var e=k8(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},H9=d5.RegExp,U9=p5((function(){var e=H9("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),$9=U9||p5((function(){return!H9("a","y").sticky})),V9={BROKEN_CARET:U9||p5((function(){var e=H9("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:$9,UNSUPPORTED_Y:U9},G9=d5.RegExp,W9=p5((function(){var e=G9(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),q9=d5.RegExp,K9=p5((function(){var e=q9("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Y9=J8.get,X9=i8("native-string-replace",String.prototype.replace),Z9=RegExp.prototype.exec,J9=Z9,Q9=A5("".charAt),eee=A5("".indexOf),tee=A5("".replace),nee=A5("".slice),ree=(j9=/b*/g,g5(Z9,L9=/a/,"a"),g5(Z9,j9,"a"),0!==L9.lastIndex||0!==j9.lastIndex),oee=V9.BROKEN_CARET,iee=void 0!==/()??/.exec("")[1];(ree||iee||oee||W9||K9)&&(J9=function(e){var t,n,r,o,i,a,u,s=this,l=Y9(s),c=H7(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=g5(J9,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=oee&&s.sticky,h=g5(z9,s),v=s.source,g=0,y=c;if(p&&(h=tee(h,"y",""),-1===eee(h,"g")&&(h+="g"),y=nee(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Q9(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),iee&&(n=new RegExp("^"+v+"$(?!\\s)",h)),ree&&(r=s.lastIndex),o=g5(Z9,p?n:s,y),p?o?(o.input=nee(o.input,g),o[0]=nee(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ree&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),iee&&o&&o.length>1&&g5(X9,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=c9(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var aee=J9;F7({target:"RegExp",proto:!0,forced:/./.exec!==aee},{exec:aee});var uee=Function.prototype,see=uee.apply,lee=uee.bind,cee=uee.call,fee="object"==typeof Reflect&&Reflect.apply||(lee?cee.bind(see):function(){return cee.apply(see,arguments)}),dee=(m8("species"),RegExp.prototype),pee=A5("".charAt),hee=A5("".charCodeAt),vee=A5("".slice),gee=function(e){return function(t,n){var r,o,i=H7(F5(t)),a=a7(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=hee(i,a))<55296||r>56319||a+1===u||(o=hee(i,a+1))<56320||o>57343?e?pee(i,a):r:e?vee(i,a,a+2):o-56320+(r-55296<<10)+65536}},yee={codeAt:gee(!1),charAt:gee(!0)},mee=yee.charAt,bee=function(e,t,n){return t+(n?mee(e,t).length:1)},Eee=Math.floor,wee=A5("".charAt),See=A5("".replace),Cee=A5("".slice),Dee=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Aee=/\$([$&'`]|\d{1,2})/g,Oee=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Aee;return void 0!==o&&(o=u8(o),s=Dee),See(i,s,(function(i,s){var l;switch(wee(s,0)){case"$":return"$";case"&":return e;case"`":return Cee(t,0,n);case"'":return Cee(t,a);case"<":l=o[Cee(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=Eee(c/10);return 0===f?i:f<=u?void 0===r[f-1]?wee(s,1):r[f-1]+wee(s,1):i}l=r[c-1]}return void 0===l?"":l}))},xee=d5.TypeError,Tee=function(e,t){var n=e.exec;if(_5(n)){var r=g5(n,e,t);return null!==r&&k8(r),r}if("RegExp"===T5(e))return g5(aee,e,t);throw xee("RegExp#exec called on incompatible receiver")},Nee=m8("replace"),kee=Math.max,Bee=Math.min,Iee=A5([].concat),Fee=A5([].push),Pee=A5("".indexOf),_ee=A5("".slice),Ree="$0"==="a".replace(/./,"$0"),Lee=!!/./[Nee]&&""===/./[Nee]("a","$0");function jee(e){return void 0===e&&(e="r"),e+"-"+jh()}!function(e,t,n,r){var o=m8(e),i=!p5((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!p5((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=A5(/./[o]),s=function(e,t,n){var r=Lee?"$":"$0";return[function(e,n){var r=F5(this),o=null==e?void 0:e8(e,Nee);return o?g5(o,e,r,n):g5(t,H7(r),e,n)},function(e,o){var i=k8(this),a=H7(e);if("string"==typeof o&&-1===Pee(o,r)&&-1===Pee(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=_5(o);s||(o=H7(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=Tee(i,a);if(null===d)break;if(Fee(f,d),!l)break;""===H7(d[0])&&(i.lastIndex=bee(a,f7(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=H7((d=f[g])[0]),m=kee(Bee(a7(d.index),a.length),0),b=[],E=1;E<d.length;E++)Fee(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Iee([y],b,m,a);void 0!==w&&Fee(S,w);var C=H7(fee(o,void 0,S))}else C=Oee(y,a,m,b,w,o);m>=v&&(h+=_ee(a,v,m)+C,v=m+y.length)}return h+_ee(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=A5(e),s=t.exec;return s===aee||s===dee.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));r7(String.prototype,e,s[0]),r7(dee,o,s[1])}}("replace",0,!!p5((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Ree||Lee);var Mee=d5.Promise,zee=function(e,t,n){for(var r in t)r7(e,r,t[r],n);return e},Hee=d5.String,Uee=d5.TypeError,$ee=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=A5(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return k8(n),function(e){if("object"==typeof e||_5(e))return e;throw Uee("Can't set "+Hee(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Vee=F8.f,Gee=m8("toStringTag"),Wee=function(e,t,n){e&&!l8(e=n?e:e.prototype,Gee)&&Vee(e,Gee,{configurable:!0,value:t})},qee=m8("species"),Kee=d5.TypeError,Yee=function(e,t){if(M5(t,e))return e;throw Kee("Incorrect invocation")},Xee={},Zee=m8("iterator"),Jee=Array.prototype,Qee=m8("iterator"),ete=function(e){if(null!=e)return e8(e,Qee)||e8(e,"@@iterator")||Xee[M7(e)]},tte=d5.TypeError,nte=function(e,t,n){var r,o;k8(e);try{if(!(r=e8(e,"return"))){if("throw"===t)throw n;return n}r=g5(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return k8(r),n},rte=d5.TypeError,ote=function(e,t){this.stopped=e,this.result=t},ite=ote.prototype,ate=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=y9(t,f),g=function(e){return r&&nte(r,"normal",e),new ote(!0,e)},y=function(e){return d?(k8(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=ete(e)))throw rte(Z5(e)+" is not iterable");if(void 0!==(c=o)&&(Xee.Array===c||Jee[Zee]===c)){for(i=0,a=d7(e);a>i;i++)if((u=y(e[i]))&&M5(ite,u))return u;return new ote(!1)}r=function(e,t){var n=arguments.length<2?ete(e):t;if(Q5(n))return k8(g5(n,e));throw tte(Z5(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=g5(s,r)).done;){try{u=y(l.value)}catch(e){nte(r,"throw",e)}if("object"==typeof u&&u&&M5(ite,u))return u}return new ote(!1)},ute=m8("iterator"),ste=!1;try{var lte=0,cte={next:function(){return{done:!!lte++}},return:function(){ste=!0}};cte[ute]=function(){return this},Array.from(cte,(function(){throw 2}))}catch(Ml){}var fte,dte,pte,hte,vte=function(e,t){if(!t&&!ste)return!1;var n=!1;try{var r={};r[ute]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},gte=d5.TypeError,yte=m8("species"),mte=A5([].slice),bte=/(?:ipad|iphone|ipod).*applewebkit/i.test(z5),Ete="process"==T5(d5.process),wte=d5.setImmediate,Ste=d5.clearImmediate,Cte=d5.process,Dte=d5.Dispatch,Ate=d5.Function,Ote=d5.MessageChannel,xte=d5.String,Tte=0,Nte={};try{fte=d5.location}catch(Ml){}var kte=function(e){if(l8(Nte,e)){var t=Nte[e];delete Nte[e],t()}},Bte=function(e){return function(){kte(e)}},Ite=function(e){kte(e.data)},Fte=function(e){d5.postMessage(xte(e),fte.protocol+"//"+fte.host)};wte&&Ste||(wte=function(e){var t=mte(arguments,1);return Nte[++Tte]=function(){fee(_5(e)?e:Ate(e),void 0,t)},dte(Tte),Tte},Ste=function(e){delete Nte[e]},Ete?dte=function(e){Cte.nextTick(Bte(e))}:Dte&&Dte.now?dte=function(e){Dte.now(Bte(e))}:Ote&&!bte?(hte=(pte=new Ote).port2,pte.port1.onmessage=Ite,dte=y9(hte.postMessage,hte)):d5.addEventListener&&_5(d5.postMessage)&&!d5.importScripts&&fte&&"file:"!==fte.protocol&&!p5(Fte)?(dte=Fte,d5.addEventListener("message",Ite,!1)):dte="onreadystatechange"in D8("script")?function(e){o9.appendChild(D8("script")).onreadystatechange=function(){o9.removeChild(this),kte(e)}}:function(e){setTimeout(Bte(e),0)});var Pte,_te,Rte,Lte,jte,Mte,zte,Hte,Ute={set:wte,clear:Ste},$te=/ipad|iphone|ipod/i.test(z5)&&void 0!==d5.Pebble,Vte=/web0s(?!.*chrome)/i.test(z5),Gte=x8.f,Wte=Ute.set,qte=d5.MutationObserver||d5.WebKitMutationObserver,Kte=d5.document,Yte=d5.process,Xte=d5.Promise,Zte=Gte(d5,"queueMicrotask"),Jte=Zte&&Zte.value;Jte||(Pte=function(){var e,t;for(Ete&&(e=Yte.domain)&&e.exit();_te;){t=_te.fn,_te=_te.next;try{t()}catch(e){throw _te?Lte():Rte=void 0,e}}Rte=void 0,e&&e.enter()},bte||Ete||Vte||!qte||!Kte?!$te&&Xte&&Xte.resolve?((zte=Xte.resolve(void 0)).constructor=Xte,Hte=y9(zte.then,zte),Lte=function(){Hte(Pte)}):Ete?Lte=function(){Yte.nextTick(Pte)}:(Wte=y9(Wte,d5),Lte=function(){Wte(Pte)}):(jte=!0,Mte=Kte.createTextNode(""),new qte(Pte).observe(Mte,{characterData:!0}),Lte=function(){Mte.data=jte=!jte}));var Qte,ene,tne,nne,rne=Jte||function(e){var t={fn:e,next:void 0};Rte&&(Rte.next=t),_te||(_te=t,Lte()),Rte=t},one=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Q5(t),this.reject=Q5(n)},ine={f:function(e){return new one(e)}},ane=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},une="object"==typeof window,sne=Ute.set,lne=m8("species"),cne="Promise",fne=J8.getterFor(cne),dne=J8.set,pne=J8.getterFor(cne),hne=Mee&&Mee.prototype,vne=Mee,gne=hne,yne=d5.TypeError,mne=d5.document,bne=d5.process,Ene=ine.f,wne=Ene,Sne=!!(mne&&mne.createEvent&&d5.dispatchEvent),Cne=_5(d5.PromiseRejectionEvent),Dne=!1,Ane=B7(cne,(function(){var e=M8(vne),t=e!==String(vne);if(!t&&66===G5)return!0;if(G5>=51&&/native code/.test(e))return!1;var n=new vne((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[lne]=r,!(Dne=n.then((function(){}))instanceof r)||!t&&une&&!Cne})),One=Ane||!vte((function(e){vne.all(e).catch((function(){}))})),xne=function(e){var t;return!(!R5(e)||!_5(t=e.then))&&t},Tne=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;rne((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Ine(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(yne("Promise-chain cycle")):(u=xne(a))?g5(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&kne(e)}))}},Nne=function(e,t,n){var r,o;Sne?((r=mne.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),d5.dispatchEvent(r)):r={promise:t,reason:n},!Cne&&(o=d5["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=d5.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},kne=function(e){g5(sne,d5,(function(){var t,n=e.facade,r=e.value;if(Bne(e)&&(t=ane((function(){Ete?bne.emit("unhandledRejection",r,n):Nne("unhandledrejection",n,r)})),e.rejection=Ete||Bne(e)?2:1,t.error))throw t.value}))},Bne=function(e){return 1!==e.rejection&&!e.parent},Ine=function(e){g5(sne,d5,(function(){var t=e.facade;Ete?bne.emit("rejectionHandled",t):Nne("rejectionhandled",t,e.value)}))},Fne=function(e,t,n){return function(r){e(t,r,n)}},Pne=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Tne(e,!0))},_ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw yne("Promise can't be resolved itself");var r=xne(t);r?rne((function(){var n={done:!1};try{g5(r,t,Fne(_ne,n,e),Fne(Pne,n,e))}catch(t){Pne(n,t,e)}})):(e.value=t,e.state=1,Tne(e,!1))}catch(t){Pne({done:!1},t,e)}}};if(Ane&&(gne=(vne=function(e){Yee(this,gne),Q5(e),g5(Qte,this);var t=fne(this);try{e(Fne(_ne,t),Fne(Pne,t))}catch(e){Pne(t,e)}}).prototype,(Qte=function(e){dne(this,{type:cne,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=zee(gne,{then:function(e,t){var n=pne(this),r=n.reactions,o=Ene(function(e,t){var n,r=k8(e).constructor;return void 0===r||null==(n=k8(r)[yte])?t:function(e){if(O9(e))return e;throw gte(Z5(e)+" is not a constructor")}(n)}(this,vne));return o.ok=!_5(e)||e,o.fail=_5(t)&&t,o.domain=Ete?bne.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Tne(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),ene=function(){var e=new Qte,t=fne(e);this.promise=e,this.resolve=Fne(_ne,t),this.reject=Fne(Pne,t)},ine.f=Ene=function(e){return e===vne||e===tne?new ene(e):wne(e)},_5(Mee)&&hne!==Object.prototype)){nne=hne.then,Dne||(r7(hne,"then",(function(e,t){var n=this;return new vne((function(e,t){g5(nne,n,e,t)})).then(e,t)}),{unsafe:!0}),r7(hne,"catch",gne.catch,{unsafe:!0}));try{delete hne.constructor}catch(Ml){}$ee&&$ee(hne,gne)}function Rne(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),r5(this,void 0,void 0,(function(){var i,a,u,s,l,c,f;return o5(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,u=i.checkVideo,s=i.parseVideoSrc,[4,u(t,n)]):[2];case 1:return"string"==typeof(l=d.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,s(t)];case 2:return 0!==(c=d.sent()).trim().indexOf("<iframe ")&&(c=c.replace(/</g,"<").replace(/>/g,">")),f={type:"video",src:c,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then((function(){md.insertNodes(e,f)})),a(f),[2]}}))}))}function Lne(){return jee("w-e-insert-video")}F7({global:!0,wrap:!0,forced:Ane},{Promise:vne}),Wee(vne,cne,!1),function(e){var t=j5("Promise"),n=F8.f;h5&&t&&!t[qee]&&n(t,qee,{configurable:!0,get:function(){return this}})}(),tne=j5(cne),F7({target:cne,stat:!0,forced:Ane},{reject:function(e){var t=Ene(this);return g5(t.reject,void 0,e),t.promise}}),F7({target:cne,stat:!0,forced:Ane},{resolve:function(e){return function(e,t){if(k8(e),R5(t)&&t.constructor===e)return t;var n=ine.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),F7({target:cne,stat:!0,forced:One},{all:function(e){var t=this,n=Ene(t),r=n.resolve,o=n.reject,i=ane((function(){var n=Q5(t.resolve),i=[],a=0,u=1;ate(e,(function(e){var s=a++,l=!1;u++,g5(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Ene(t),r=n.reject,o=ane((function(){var o=Q5(t.resolve);ate(e,(function(e){g5(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var jne=function(){function e(){this.title=UF("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=Lne(),this.posterInputId=Lne(),this.buttonId=Lne()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!Qx.getSelectedElems(e).some((function(t){var n=Qx.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=i5(CI(UF("videoModule.videoSrc"),r,UF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=i5(CI(UF("videoModule.videoPoster"),o,UF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=i5(AI(i,UF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return r5(t,void 0,void 0,(function(){var t,i;return o5(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Rne(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),Mne=A5([].join),zne=B5!=Object,Hne=function(e,t){var n=[].join;return!!n&&p5((function(){n.call(null,",",1)}))}();F7({target:"Array",proto:!0,forced:zne||!Hne},{join:function(e){return Mne(P5(this),void 0===e?",":e)}});var Une,$ne,Vne,Gne=!p5((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Wne=$8("IE_PROTO"),qne=d5.Object,Kne=qne.prototype,Yne=Gne?qne.getPrototypeOf:function(e){var t=u8(e);if(l8(t,Wne))return t[Wne];var n=t.constructor;return _5(n)&&t instanceof n?n.prototype:t instanceof qne?Kne:null},Xne=m8("iterator"),Zne=!1;[].keys&&("next"in(Vne=[].keys())?($ne=Yne(Yne(Vne)))!==Object.prototype&&(Une=$ne):Zne=!0);var Jne=null==Une||p5((function(){var e={};return Une[Xne].call(e)!==e}));Jne&&(Une={}),_5(Une[Xne])||r7(Une,Xne,(function(){return this}));var Qne={IteratorPrototype:Une,BUGGY_SAFARI_ITERATORS:Zne},ere=Qne.IteratorPrototype,tre=function(){return this},nre=n7.PROPER,rre=n7.CONFIGURABLE,ore=Qne.IteratorPrototype,ire=Qne.BUGGY_SAFARI_ITERATORS,are=m8("iterator"),ure=function(){return this},sre=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=c9(ere,{next:E5(1,n)}),Wee(e,o,!1),Xee[o]=tre}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!ire&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[are]||p["@@iterator"]||o&&p[o],v=!ire&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Yne(g.call(new e)))!==Object.prototype&&u.next&&(Yne(u)!==ore&&($ee?$ee(u,ore):_5(u[are])||r7(u,are,ure)),Wee(u,f,!0)),nre&&"values"==o&&h&&"values"!==h.name&&(rre?P8(p,"name","values"):(d=!0,v=function(){return g5(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(ire||d||!(l in p))&&r7(p,l,s[l]);else F7({target:t,proto:!0,forced:ire||d},s);return p[are]!==v&&r7(p,are,v,{name:o}),Xee[t]=v,s},lre=J8.set,cre=J8.getterFor("Array Iterator"),fre=sre(Array,"Array",(function(e,t){lre(this,{type:"Array Iterator",target:P5(e),index:0,kind:t})}),(function(){var e=cre(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Xee.Arguments=Xee.Array,p9("keys"),p9("values"),p9("entries");var dre=yee.charAt,pre=J8.set,hre=J8.getterFor("String Iterator");sre(String,"String",(function(e){pre(this,{type:"String Iterator",string:H7(e),index:0})}),(function(){var e,t=hre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=dre(n,r),t.index+=e.length,{value:e,done:!1})}));var vre=function(e,t,n){var r=w8(t);r in e?F8.f(e,r,E5(0,n)):e[r]=n},gre=d5.Array,yre=Math.max,mre=E7.f,bre="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ere={f:function(e){return bre&&"Window"==T5(e)?function(e){try{return mre(e)}catch(e){return function(e,t,n){for(var r=d7(e),o=l7(void 0,r),i=l7(r,r),a=gre(yre(i-o,0)),u=0;o<i;o++,u++)vre(a,u,e[o]);return a.length=u,a}(bre)}}(e):mre(P5(e))}},wre=p5((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Sre=Object.isExtensible,Cre=p5((function(){Sre(1)}))||wre?function(e){return!!R5(e)&&(!wre||"ArrayBuffer"!=T5(e))&&(!Sre||Sre(e))}:Sre,Dre=!p5((function(){return Object.isExtensible(Object.preventExtensions({}))})),Are=s5((function(e){var t=F8.f,n=!1,r=p8("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=E7.f,t=A5([].splice),o={};o[r]=1,e(o).length&&(E7.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},F7({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ere.f}))},fastKey:function(e,t){if(!R5(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!l8(e,r)){if(!Cre(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!l8(e,r)){if(!Cre(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Dre&&n&&Cre(e)&&!l8(e,r)&&i(e),e}};V8[r]=!0})),Ore=Are.getWeakData,xre=J8.set,Tre=J8.getterFor,Nre=I9.find,kre=I9.findIndex,Bre=A5([].splice),Ire=0,Fre=function(e){return e.frozen||(e.frozen=new Pre)},Pre=function(){this.entries=[]},_re=function(e,t){return Nre(e.entries,(function(e){return e[0]===t}))};Pre.prototype={get:function(e){var t=_re(this,e);if(t)return t[1]},has:function(e){return!!_re(this,e)},set:function(e,t){var n=_re(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=kre(this.entries,(function(t){return t[0]===e}));return~t&&Bre(this.entries,t,1),!!~t}};var Rre,Lre={getConstructor:function(e,t,n,r){var o=e((function(e,o){Yee(e,i),xre(e,{type:t,id:Ire++,frozen:void 0}),null!=o&&ate(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Tre(t),u=function(e,t,n){var r=a(e),o=Ore(k8(t),!0);return!0===o?Fre(r).set(t,n):o[r.id]=n,e};return zee(i,{delete:function(e){var t=a(this);if(!R5(e))return!1;var n=Ore(e);return!0===n?Fre(t).delete(e):n&&l8(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!R5(e))return!1;var n=Ore(e);return!0===n?Fre(t).has(e):n&&l8(n,t.id)}}),zee(i,n?{get:function(e){var t=a(this);if(R5(e)){var n=Ore(e);return!0===n?Fre(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},jre=J8.enforce,Mre=!d5.ActiveXObject&&"ActiveXObject"in d5,zre=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Hre=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=d5[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=A5(u[e]);r7(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!R5(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!R5(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!R5(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(B7(e,!_5(a)||!(o||u.forEach&&!p5((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Are.enable();else if(B7(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=p5((function(){f.has(1)})),h=vte((function(e){new a(e)})),v=!o&&p5((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Yee(e,u);var n=function(e,t,n){var r,o;return $ee&&_5(r=t.constructor)&&r!==n&&R5(o=r.prototype)&&o!==n.prototype&&$ee(e,o),e}(new a,e,s);return null!=t&&ate(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,F7({global:!0,forced:s!=a},l),Wee(s,e),o||n.setStrong(s,e,r),s}("WeakMap",zre,Lre);if(H8&&Mre){Rre=Lre.getConstructor(zre,"WeakMap",!0),Are.enable();var Ure=Hre.prototype,$re=A5(Ure.delete),Vre=A5(Ure.has),Gre=A5(Ure.get),Wre=A5(Ure.set);zee(Ure,{delete:function(e){if(R5(e)&&!Cre(e)){var t=jre(this);return t.frozen||(t.frozen=new Rre),$re(this,e)||t.frozen.delete(e)}return $re(this,e)},has:function(e){if(R5(e)&&!Cre(e)){var t=jre(this);return t.frozen||(t.frozen=new Rre),Vre(this,e)||t.frozen.has(e)}return Vre(this,e)},get:function(e){if(R5(e)&&!Cre(e)){var t=jre(this);return t.frozen||(t.frozen=new Rre),Vre(this,e)?Gre(this,e):t.frozen.get(e)}return Gre(this,e)},set:function(e,t){if(R5(e)&&!Cre(e)){var n=jre(this);n.frozen||(n.frozen=new Rre),Vre(this,e)?Wre(this,e,t):n.frozen.set(e,t)}else Wre(this,e,t);return this}})}var qre={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Kre=D8("span").classList,Yre=Kre&&Kre.constructor&&Kre.constructor.prototype,Xre=Yre===Object.prototype?void 0:Yre,Zre=m8("iterator"),Jre=m8("toStringTag"),Qre=fre.values,eoe=function(e,t){if(e){if(e[Zre]!==Qre)try{P8(e,Zre,Qre)}catch(t){e[Zre]=Qre}if(e[Jre]||P8(e,Jre,t),qre[t])for(var n in fre)if(e[n]!==fre[n])try{P8(e,n,fre[n])}catch(t){e[n]=fre[n]}}};for(var toe in qre)eoe(d5[toe]&&d5[toe].prototype,toe);eoe(Xre,"DOMTokenList");var noe=n7.EXISTS,roe=F8.f,ooe=Function.prototype,ioe=A5(ooe.toString),aoe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,uoe=A5(aoe.exec);h5&&!noe&&roe(ooe,"name",{configurable:!0,get:function(){try{return uoe(aoe,ioe(this))[1]}catch(e){return""}}});var soe=m8("species"),loe=G5>=51||!p5((function(){var e=[];return(e.constructor={})[soe]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),coe=m8("species"),foe=d5.Array,doe=Math.max;function poe(e){return e.getMenuConfig("uploadVideo")}F7({target:"Array",proto:!0,forced:!loe},{slice:function(e,t){var n,r,o,i=P5(this),a=d7(i),u=l7(e,a),s=l7(void 0===t?a:t,a);if(m9(i)&&(n=i.constructor,(O9(n)&&(n===foe||m9(n.prototype))||R5(n)&&null===(n=n[coe]))&&(n=void 0),n===foe||void 0===n))return mte(i,u,s);for(r=new(void 0===n?foe:n)(doe(s-u,0)),o=0;u<s;u++,o++)u in i&&vre(r,o,i[u]);return r.length=o,r}});var hoe=new WeakMap;function voe(e,t){return r5(this,void 0,void 0,(function(){var n,r,o,i;return o5(this,(function(a){switch(a.label){case 0:return n=function(e){var t=hoe.get(e);if(null!=t)return t;var n=poe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=KI(n5(n5({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Rne(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Rne(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),hoe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var goe=function(){function e(){this.title=UF("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Rne(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;r5(this,void 0,void 0,(function(){var o,i,a,u,s,l;return o5(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=poe(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=a5(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Rne(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,voe(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!Qx.getSelectedElems(e).some((function(t){var n=Qx.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function yoe(){return jee("w-e-insert-video")}var moe=function(){function e(){this.title=UF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=yoe(),this.heightInputId=yoe(),this.buttonId=yoe()}return e.prototype.getSelectedVideoNode=function(e){return Qx.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=i5(CI(UF("videoModule.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=i5(CI(UF("videoModule.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=i5(AI(o,UF("videoModule.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p=n5(n5({},f),{style:{width:s,height:l}});md.setNodes(e,p,{match:function(e){return Qx.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"":y,b=g.height,E=void 0===b?"":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}();function boe(){return jee("w-e-edit-video")}var Eoe=function(){function e(){this.title=UF("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=boe(),this.posterInputId=boe(),this.buttonId=boe()}return e.prototype.getSelectedVideoNode=function(e){return Qx.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=i5(CI(UF("videoModule.videoSrc"),r,UF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=i5(CI(UF("videoModule.videoPoster"),o,UF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=i5(AI(i,UF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return r5(t,void 0,void 0,(function(){var t,i,a,u;return o5(this,(function(s){return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),a=jee("video-"),u={src:t,poster:i,key:a},e.restoreSelection(),md.setNodes(e,u,{match:function(e){return Qx.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=v}var g=this.$content;g.empty(),g.append(u),g.append(c),g.append(h);var y=this.getSelectedVideoNode(e);if(null==y)return g[0];var m=y.src,b=void 0===m?"":m,E=y.poster,w=void 0===E?"":E;return d.val(b),p.val(w),setTimeout((function(){d.focus()})),g[0]},e}(),woe={renderElems:[e9],elemsToHtml:[t9],preParseHtml:[v9],parseElemsHtml:[M9],menus:[{key:"insertVideo",factory:function(){return new jne},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new goe},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new moe}},{key:"editVideoSrc",factory:function(){return new Eoe}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=i5(e,2),o=t[0],i=t[1];return"video"===Qx.getNodeType(o)&&Qx.isLastNode(r,o)&&md.insertNodes(r,Qx.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};MF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),MF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Soe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Coe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Doe,Aoe,Ooe=function(e){return e&&e.Math==Math&&e},xoe=Ooe("object"==typeof globalThis&&globalThis)||Ooe("object"==typeof window&&window)||Ooe("object"==typeof self&&self)||Ooe("object"==typeof Soe&&Soe)||function(){return this}()||Function("return this")(),Toe=function(e){try{return!!e()}catch(e){return!0}},Noe=!Toe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),koe=Function.prototype.call,Boe=koe.bind?koe.bind(koe):function(){return koe.apply(koe,arguments)},Ioe={}.propertyIsEnumerable,Foe=Object.getOwnPropertyDescriptor,Poe={f:Foe&&!Ioe.call({1:2},1)?function(e){var t=Foe(this,e);return!!t&&t.enumerable}:Ioe},_oe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Roe=Function.prototype,Loe=Roe.bind,joe=Roe.call,Moe=Loe&&Loe.bind(joe),zoe=Loe?function(e){return e&&Moe(joe,e)}:function(e){return e&&function(){return joe.apply(e,arguments)}},Hoe=zoe({}.toString),Uoe=zoe("".slice),$oe=function(e){return Uoe(Hoe(e),8,-1)},Voe=xoe.Object,Goe=zoe("".split),Woe=Toe((function(){return!Voe("z").propertyIsEnumerable(0)}))?function(e){return"String"==$oe(e)?Goe(e,""):Voe(e)}:Voe,qoe=xoe.TypeError,Koe=function(e){if(null==e)throw qoe("Can't call method on "+e);return e},Yoe=function(e){return Woe(Koe(e))},Xoe=function(e){return"function"==typeof e},Zoe=function(e){return"object"==typeof e?null!==e:Xoe(e)},Joe=function(e){return Xoe(e)?e:void 0},Qoe=function(e,t){return arguments.length<2?Joe(xoe[e]):xoe[e]&&xoe[e][t]},eie=zoe({}.isPrototypeOf),tie=Qoe("navigator","userAgent")||"",nie=xoe.process,rie=xoe.Deno,oie=nie&&nie.versions||rie&&rie.version,iie=oie&&oie.v8;iie&&(Aoe=(Doe=iie.split("."))[0]>0&&Doe[0]<4?1:+(Doe[0]+Doe[1])),!Aoe&&tie&&(!(Doe=tie.match(/Edge\/(\d+)/))||Doe[1]>=74)&&(Doe=tie.match(/Chrome\/(\d+)/))&&(Aoe=+Doe[1]);var aie=Aoe,uie=!!Object.getOwnPropertySymbols&&!Toe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aie&&aie<41})),sie=uie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,lie=xoe.Object,cie=sie?function(e){return"symbol"==typeof e}:function(e){var t=Qoe("Symbol");return Xoe(t)&&eie(t.prototype,lie(e))},fie=xoe.String,die=function(e){try{return fie(e)}catch(e){return"Object"}},pie=xoe.TypeError,hie=function(e){if(Xoe(e))return e;throw pie(die(e)+" is not a function")},vie=function(e,t){var n=e[t];return null==n?void 0:hie(n)},gie=xoe.TypeError,yie=Object.defineProperty,mie=function(e,t){try{yie(xoe,e,{value:t,configurable:!0,writable:!0})}catch(n){xoe[e]=t}return t},bie=xoe["__core-js_shared__"]||mie("__core-js_shared__",{}),Eie=Coe((function(e){(e.exports=function(e,t){return bie[e]||(bie[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),wie=xoe.Object,Sie=function(e){return wie(Koe(e))},Cie=zoe({}.hasOwnProperty),Die=Object.hasOwn||function(e,t){return Cie(Sie(e),t)},Aie=0,Oie=Math.random(),xie=zoe(1..toString),Tie=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xie(++Aie+Oie,36)},Nie=Eie("wks"),kie=xoe.Symbol,Bie=kie&&kie.for,Iie=sie?kie:kie&&kie.withoutSetter||Tie,Fie=function(e){if(!Die(Nie,e)||!uie&&"string"!=typeof Nie[e]){var t="Symbol."+e;uie&&Die(kie,e)?Nie[e]=kie[e]:Nie[e]=sie&&Bie?Bie(t):Iie(t)}return Nie[e]},Pie=xoe.TypeError,_ie=Fie("toPrimitive"),Rie=function(e){var t=function(e,t){if(!Zoe(e)||cie(e))return e;var n,r=vie(e,_ie);if(r){if(void 0===t&&(t="default"),n=Boe(r,e,t),!Zoe(n)||cie(n))return n;throw Pie("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Xoe(n=e.toString)&&!Zoe(r=Boe(n,e)))return r;if(Xoe(n=e.valueOf)&&!Zoe(r=Boe(n,e)))return r;if("string"!==t&&Xoe(n=e.toString)&&!Zoe(r=Boe(n,e)))return r;throw gie("Can't convert object to primitive value")}(e,t)}(e,"string");return cie(t)?t:t+""},Lie=xoe.document,jie=Zoe(Lie)&&Zoe(Lie.createElement),Mie=function(e){return jie?Lie.createElement(e):{}},zie=!Noe&&!Toe((function(){return 7!=Object.defineProperty(Mie("div"),"a",{get:function(){return 7}}).a})),Hie=Object.getOwnPropertyDescriptor,Uie={f:Noe?Hie:function(e,t){if(e=Yoe(e),t=Rie(t),zie)try{return Hie(e,t)}catch(e){}if(Die(e,t))return _oe(!Boe(Poe.f,e,t),e[t])}},$ie=xoe.String,Vie=xoe.TypeError,Gie=function(e){if(Zoe(e))return e;throw Vie($ie(e)+" is not an object")},Wie=xoe.TypeError,qie=Object.defineProperty,Kie={f:Noe?qie:function(e,t,n){if(Gie(e),t=Rie(t),Gie(n),zie)try{return qie(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Wie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Yie=Noe?function(e,t,n){return Kie.f(e,t,_oe(1,n))}:function(e,t,n){return e[t]=n,e},Xie=zoe(Function.toString);Xoe(bie.inspectSource)||(bie.inspectSource=function(e){return Xie(e)});var Zie,Jie,Qie,eae=bie.inspectSource,tae=xoe.WeakMap,nae=Xoe(tae)&&/native code/.test(eae(tae)),rae=Eie("keys"),oae=function(e){return rae[e]||(rae[e]=Tie(e))},iae={},aae=xoe.TypeError,uae=xoe.WeakMap;if(nae||bie.state){var sae=bie.state||(bie.state=new uae),lae=zoe(sae.get),cae=zoe(sae.has),fae=zoe(sae.set);Zie=function(e,t){if(cae(sae,e))throw new aae("Object already initialized");return t.facade=e,fae(sae,e,t),t},Jie=function(e){return lae(sae,e)||{}},Qie=function(e){return cae(sae,e)}}else{var dae=oae("state");iae[dae]=!0,Zie=function(e,t){if(Die(e,dae))throw new aae("Object already initialized");return t.facade=e,Yie(e,dae,t),t},Jie=function(e){return Die(e,dae)?e[dae]:{}},Qie=function(e){return Die(e,dae)}}var pae={set:Zie,get:Jie,has:Qie,enforce:function(e){return Qie(e)?Jie(e):Zie(e,{})},getterFor:function(e){return function(t){var n;if(!Zoe(t)||(n=Jie(t)).type!==e)throw aae("Incompatible receiver, "+e+" required");return n}}},hae=Function.prototype,vae=Noe&&Object.getOwnPropertyDescriptor,gae=Die(hae,"name"),yae={EXISTS:gae,PROPER:gae&&"something"===function(){}.name,CONFIGURABLE:gae&&(!Noe||Noe&&vae(hae,"name").configurable)},mae=Coe((function(e){var t=yae.CONFIGURABLE,n=pae.get,r=pae.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Xoe(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Die(i,"name")||t&&i.name!==f)&&Yie(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==xoe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Yie(e,n,i)):l?e[n]=i:mie(n,i)})(Function.prototype,"toString",(function(){return Xoe(this)&&n(this).source||eae(this)}))})),bae=Math.ceil,Eae=Math.floor,wae=function(e){var t=+e;return t!=t||0===t?0:(t>0?Eae:bae)(t)},Sae=Math.max,Cae=Math.min,Dae=function(e,t){var n=wae(e);return n<0?Sae(n+t,0):Cae(n,t)},Aae=Math.min,Oae=function(e){return e>0?Aae(wae(e),9007199254740991):0},xae=function(e){return Oae(e.length)},Tae=function(e){return function(t,n,r){var o,i=Yoe(t),a=xae(i),u=Dae(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Nae=(Tae(!0),Tae(!1)),kae=zoe([].push),Bae=function(e,t){var n,r=Yoe(e),o=0,i=[];for(n in r)!Die(iae,n)&&Die(r,n)&&kae(i,n);for(;t.length>o;)Die(r,n=t[o++])&&(~Nae(i,n)||kae(i,n));return i},Iae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fae=Iae.concat("length","prototype"),Pae={f:Object.getOwnPropertyNames||function(e){return Bae(e,Fae)}},_ae={f:Object.getOwnPropertySymbols},Rae=zoe([].concat),Lae=Qoe("Reflect","ownKeys")||function(e){var t=Pae.f(Gie(e)),n=_ae.f;return n?Rae(t,n(e)):t},jae=function(e,t){for(var n=Lae(t),r=Kie.f,o=Uie.f,i=0;i<n.length;i++){var a=n[i];Die(e,a)||r(e,a,o(t,a))}},Mae=/#|\.prototype\./,zae=function(e,t){var n=Uae[Hae(e)];return n==Vae||n!=$ae&&(Xoe(t)?Toe(t):!!t)},Hae=zae.normalize=function(e){return String(e).replace(Mae,".").toLowerCase()},Uae=zae.data={},$ae=zae.NATIVE="N",Vae=zae.POLYFILL="P",Gae=zae,Wae=Uie.f,qae=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?xoe:l?xoe[u]||mie(u,{}):(xoe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Wae(n,r))&&a.value:n[r],!Gae(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;jae(i,o)}(e.sham||o&&o.sham)&&Yie(i,"sham",!0),mae(n,r,i,e)}},Kae=Array.isArray||function(e){return"Array"==$oe(e)},Yae={};Yae[Fie("toStringTag")]="z";var Xae="[object z]"===String(Yae),Zae=Fie("toStringTag"),Jae=xoe.Object,Qae="Arguments"==$oe(function(){return arguments}()),eue=Xae?$oe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Jae(e),Zae))?n:Qae?$oe(t):"Object"==(r=$oe(t))&&Xoe(t.callee)?"Arguments":r},tue=function(){},nue=[],rue=Qoe("Reflect","construct"),oue=/^\s*(?:class|function)\b/,iue=zoe(oue.exec),aue=!oue.exec(tue),uue=function(e){if(!Xoe(e))return!1;try{return rue(tue,nue,e),!0}catch(e){return!1}},sue=!rue||Toe((function(){var e;return uue(uue.call)||!uue(Object)||!uue((function(){e=!0}))||e}))?function(e){if(!Xoe(e))return!1;switch(eue(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return aue||!!iue(oue,eae(e))}:uue,lue=function(e,t,n){var r=Rie(t);r in e?Kie.f(e,r,_oe(0,n)):e[r]=n},cue=Fie("species"),fue=zoe([].slice),due=("slice",aie>=51||!Toe((function(){var e=[];return(e.constructor={})[cue]=function(){return{foo:1}},1!==e.slice(Boolean).foo}))),pue=Fie("species"),hue=xoe.Array,vue=Math.max;qae({target:"Array",proto:!0,forced:!due},{slice:function(e,t){var n,r,o,i=Yoe(this),a=xae(i),u=Dae(e,a),s=Dae(void 0===t?a:t,a);if(Kae(i)&&(n=i.constructor,(sue(n)&&(n===hue||Kae(n.prototype))||Zoe(n)&&null===(n=n[pue]))&&(n=void 0),n===hue||void 0===n))return fue(i,u,s);for(r=new(void 0===n?hue:n)(vue(s-u,0)),o=0;u<s;u++,o++)u in i&&lue(r,o,i[u]);return r.length=o,r}});var gue=Xae?{}.toString:function(){return"[object "+eue(this)+"]"};Xae||mae(Object.prototype,"toString",gue,{unsafe:!0});var yue,mue=xoe.String,bue=function(e){if("Symbol"===eue(e))throw TypeError("Cannot convert a Symbol value to a string");return mue(e)},Eue=function(){var e=Gie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wue=xoe.RegExp,Sue=Toe((function(){var e=wue("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Cue=Sue||Toe((function(){return!wue("a","y").sticky})),Due={BROKEN_CARET:Sue||Toe((function(){var e=wue("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Cue,UNSUPPORTED_Y:Sue},Aue=Object.keys||function(e){return Bae(e,Iae)},Oue=Noe?Object.defineProperties:function(e,t){Gie(e);for(var n,r=Yoe(t),o=Aue(t),i=o.length,a=0;i>a;)Kie.f(e,n=o[a++],r[n]);return e},xue=Qoe("document","documentElement"),Tue=oae("IE_PROTO"),Nue=function(){},kue=function(e){return"<script>"+e+"<\/script>"},Bue=function(e){e.write(kue("")),e.close();var t=e.parentWindow.Object;return e=null,t},Iue=function(){try{yue=new ActiveXObject("htmlfile")}catch(e){}var e,t;Iue="undefined"!=typeof document?document.domain&&yue?Bue(yue):((t=Mie("iframe")).style.display="none",xue.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kue("document.F=Object")),e.close(),e.F):Bue(yue);for(var n=Iae.length;n--;)delete Iue.prototype[Iae[n]];return Iue()};iae[Tue]=!0;var Fue,Pue,_ue=Object.create||function(e,t){var n;return null!==e?(Nue.prototype=Gie(e),n=new Nue,Nue.prototype=null,n[Tue]=e):n=Iue(),void 0===t?n:Oue(n,t)},Rue=xoe.RegExp,Lue=Toe((function(){var e=Rue(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),jue=xoe.RegExp,Mue=Toe((function(){var e=jue("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),zue=pae.get,Hue=Eie("native-string-replace",String.prototype.replace),Uue=RegExp.prototype.exec,$ue=Uue,Vue=zoe("".charAt),Gue=zoe("".indexOf),Wue=zoe("".replace),que=zoe("".slice),Kue=(Pue=/b*/g,Boe(Uue,Fue=/a/,"a"),Boe(Uue,Pue,"a"),0!==Fue.lastIndex||0!==Pue.lastIndex),Yue=Due.BROKEN_CARET,Xue=void 0!==/()??/.exec("")[1];(Kue||Xue||Yue||Lue||Mue)&&($ue=function(e){var t,n,r,o,i,a,u,s=this,l=zue(s),c=bue(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Boe($ue,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=Yue&&s.sticky,h=Boe(Eue,s),v=s.source,g=0,y=c;if(p&&(h=Wue(h,"y",""),-1===Gue(h,"g")&&(h+="g"),y=que(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==Vue(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),Xue&&(n=new RegExp("^"+v+"$(?!\\s)",h)),Kue&&(r=s.lastIndex),o=Boe(Uue,p?n:s,y),p?o?(o.input=que(o.input,g),o[0]=que(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:Kue&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),Xue&&o&&o.length>1&&Boe(Hue,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=_ue(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Zue=$ue;qae({target:"RegExp",proto:!0,forced:/./.exec!==Zue},{exec:Zue});var Jue=Function.prototype,Que=Jue.apply,ese=Jue.bind,tse=Jue.call,nse="object"==typeof Reflect&&Reflect.apply||(ese?tse.bind(Que):function(){return tse.apply(Que,arguments)}),rse=Fie("species"),ose=RegExp.prototype,ise=Fie("match"),ase=xoe.TypeError,use=Fie("species"),sse=function(e,t){var n,r=Gie(e).constructor;return void 0===r||null==(n=Gie(r)[use])?t:function(e){if(sue(e))return e;throw ase(die(e)+" is not a constructor")}(n)},lse=zoe("".charAt),cse=zoe("".charCodeAt),fse=zoe("".slice),dse=function(e){return function(t,n){var r,o,i=bue(Koe(t)),a=wae(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=cse(i,a))<55296||r>56319||a+1===u||(o=cse(i,a+1))<56320||o>57343?e?lse(i,a):r:e?fse(i,a,a+2):o-56320+(r-55296<<10)+65536}},pse={codeAt:dse(!1),charAt:dse(!0)},hse=pse.charAt,vse=function(e,t,n){return t+(n?hse(e,t).length:1)},gse=xoe.Array,yse=Math.max,mse=function(e,t,n){for(var r=xae(e),o=Dae(t,r),i=Dae(void 0===n?r:n,r),a=gse(yse(i-o,0)),u=0;o<i;o++,u++)lue(a,u,e[o]);return a.length=u,a},bse=xoe.TypeError,Ese=function(e,t){var n=e.exec;if(Xoe(n)){var r=Boe(n,e,t);return null!==r&&Gie(r),r}if("RegExp"===$oe(e))return Boe(Zue,e,t);throw bse("RegExp#exec called on incompatible receiver")},wse=Due.UNSUPPORTED_Y,Sse=Math.min,Cse=[].push,Dse=zoe(/./.exec),Ase=zoe(Cse),Ose=zoe("".slice);!function(e,t,n,r){var o=Fie(e),i=!Toe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Toe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[rse]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=zoe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=bue(Koe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!Zoe(r=e)||!(void 0!==(o=r[ise])?o:"RegExp"==$oe(r)))return Boe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Boe(Zue,p,i))&&!((s=p.lastIndex)>d&&(Ase(c,Ose(i,d,u.index)),u.length>1&&u.index<i.length&&nse(Cse,c,mse(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Dse(p,"")||Ase(c,""):Ase(c,Ose(i,d)),c.length>a?mse(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Boe(t,this,e,n)}:t,[function(t,n){var o=Koe(this),i=null==t?void 0:vie(t,e);return i?Boe(i,t,o,n):Boe(r,bue(o),t,n)},function(e,o){var i=Gie(this),a=bue(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=sse(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(wse?"g":"y"),f=new s(wse?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Ese(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=wse?0:h;var g,y=Ese(f,wse?Ose(a,h):a);if(null===y||(g=Sse(Oae(f.lastIndex+(wse?h:0)),a.length))===p)h=vse(a,h,l);else{if(Ase(v,Ose(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Ase(v,y[m]),v.length===d)return v;h=p=g}}return Ase(v,Ose(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=zoe(e),s=t.exec;return s===Zue||s===ose.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));mae(String.prototype,e,s[0]),mae(ose,o,s[1])}r&&Yie(ose[o],"sham",!0)}("split",0,!!Toe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),wse);
|
|
98
|
-
/*! *****************************************************************************
|
|
99
|
-
Copyright (c) Microsoft Corporation.
|
|
100
|
-
|
|
101
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
102
|
-
purpose with or without fee is hereby granted.
|
|
103
|
-
|
|
104
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
105
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
106
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
107
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
108
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
109
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
110
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
111
|
-
***************************************************************************** */
|
|
112
|
-
var xse=function(){return xse=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xse.apply(this,arguments)};function Tse(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Nse(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function kse(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}var Bse=Fie("unscopables"),Ise=Array.prototype;null==Ise[Bse]&&Kie.f(Ise,Bse,{configurable:!0,value:_ue(null)});var Fse,Pse,_se,Rse=function(e){Ise[Bse][e]=!0},Lse={},jse=!Toe((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Mse=oae("IE_PROTO"),zse=xoe.Object,Hse=zse.prototype,Use=jse?zse.getPrototypeOf:function(e){var t=Sie(e);if(Die(t,Mse))return t[Mse];var n=t.constructor;return Xoe(n)&&t instanceof n?n.prototype:t instanceof zse?Hse:null},$se=Fie("iterator"),Vse=!1;[].keys&&("next"in(_se=[].keys())?(Pse=Use(Use(_se)))!==Object.prototype&&(Fse=Pse):Vse=!0);var Gse=null==Fse||Toe((function(){var e={};return Fse[$se].call(e)!==e}));Gse&&(Fse={}),Xoe(Fse[$se])||mae(Fse,$se,(function(){return this}));var Wse={IteratorPrototype:Fse,BUGGY_SAFARI_ITERATORS:Vse},qse=Kie.f,Kse=Fie("toStringTag"),Yse=function(e,t,n){e&&!Die(e=n?e:e.prototype,Kse)&&qse(e,Kse,{configurable:!0,value:t})},Xse=Wse.IteratorPrototype,Zse=function(){return this},Jse=xoe.String,Qse=xoe.TypeError,ele=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=zoe(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Gie(n),function(e){if("object"==typeof e||Xoe(e))return e;throw Qse("Can't set "+Jse(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),tle=yae.PROPER,nle=yae.CONFIGURABLE,rle=Wse.IteratorPrototype,ole=Wse.BUGGY_SAFARI_ITERATORS,ile=Fie("iterator"),ale=function(){return this},ule=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=_ue(Xse,{next:_oe(1,n)}),Yse(e,o,!1),Lse[o]=Zse}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!ole&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[ile]||p["@@iterator"]||o&&p[o],v=!ole&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Use(g.call(new e)))!==Object.prototype&&u.next&&(Use(u)!==rle&&(ele?ele(u,rle):Xoe(u[ile])||mae(u,ile,ale)),Yse(u,f,!0)),tle&&"values"==o&&h&&"values"!==h.name&&(nle?Yie(p,"name","values"):(d=!0,v=function(){return Boe(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(ole||d||!(l in p))&&mae(p,l,s[l]);else qae({target:t,proto:!0,forced:ole||d},s);return p[ile]!==v&&mae(p,ile,v,{name:o}),Lse[t]=v,s},sle=pae.set,lle=pae.getterFor("Array Iterator"),cle=ule(Array,"Array",(function(e,t){sle(this,{type:"Array Iterator",target:Yoe(e),index:0,kind:t})}),(function(){var e=lle(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Lse.Arguments=Lse.Array,Rse("keys"),Rse("values"),Rse("entries");var fle=pse.charAt,dle=pae.set,ple=pae.getterFor("String Iterator");ule(String,"String",(function(e){dle(this,{type:"String Iterator",string:bue(e),index:0})}),(function(){var e,t=ple(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fle(n,r),t.index+=e.length,{value:e,done:!1})}));var hle=function(e,t,n){for(var r in t)mae(e,r,t[r],n);return e},vle=Pae.f,gle="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yle={f:function(e){return gle&&"Window"==$oe(e)?function(e){try{return vle(e)}catch(e){return mse(gle)}}(e):vle(Yoe(e))}},mle=Toe((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),ble=Object.isExtensible,Ele=Toe((function(){ble(1)}))||mle?function(e){return!!Zoe(e)&&(!mle||"ArrayBuffer"!=$oe(e))&&(!ble||ble(e))}:ble,wle=!Toe((function(){return Object.isExtensible(Object.preventExtensions({}))})),Sle=Coe((function(e){var t=Kie.f,n=!1,r=Tie("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Pae.f,t=zoe([].splice),o={};o[r]=1,e(o).length&&(Pae.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},qae({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:yle.f}))},fastKey:function(e,t){if(!Zoe(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Die(e,r)){if(!Ele(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Die(e,r)){if(!Ele(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return wle&&n&&Ele(e)&&!Die(e,r)&&i(e),e}};iae[r]=!0})),Cle=zoe(zoe.bind),Dle=function(e,t){return hie(e),void 0===t?e:Cle?Cle(e,t):function(){return e.apply(t,arguments)}},Ale=Fie("iterator"),Ole=Array.prototype,xle=Fie("iterator"),Tle=function(e){if(null!=e)return vie(e,xle)||vie(e,"@@iterator")||Lse[eue(e)]},Nle=xoe.TypeError,kle=function(e,t,n){var r,o;Gie(e);try{if(!(r=vie(e,"return"))){if("throw"===t)throw n;return n}r=Boe(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return Gie(r),n},Ble=xoe.TypeError,Ile=function(e,t){this.stopped=e,this.result=t},Fle=Ile.prototype,Ple=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Dle(t,f),g=function(e){return r&&kle(r,"normal",e),new Ile(!0,e)},y=function(e){return d?(Gie(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=Tle(e)))throw Ble(die(e)+" is not iterable");if(void 0!==(c=o)&&(Lse.Array===c||Ole[Ale]===c)){for(i=0,a=xae(e);a>i;i++)if((u=y(e[i]))&&eie(Fle,u))return u;return new Ile(!1)}r=function(e,t){var n=arguments.length<2?Tle(e):t;if(hie(n))return Gie(Boe(n,e));throw Nle(die(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Boe(s,r)).done;){try{u=y(l.value)}catch(e){kle(r,"throw",e)}if("object"==typeof u&&u&&eie(Fle,u))return u}return new Ile(!1)},_le=xoe.TypeError,Rle=function(e,t){if(eie(t,e))return e;throw _le("Incorrect invocation")},Lle=Fie("iterator"),jle=!1;try{var Mle=0,zle={next:function(){return{done:!!Mle++}},return:function(){jle=!0}};zle[Lle]=function(){return this},Array.from(zle,(function(){throw 2}))}catch(Ml){}var Hle=function(e,t){if(!t&&!jle)return!1;var n=!1;try{var r={};r[Lle]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ule=Fie("species"),$le=xoe.Array,Vle=function(e,t){return new(function(e){var t;return Kae(e)&&(t=e.constructor,(sue(t)&&(t===$le||Kae(t.prototype))||Zoe(t)&&null===(t=t[Ule]))&&(t=void 0)),void 0===t?$le:t}(e))(0===t?0:t)},Gle=zoe([].push),Wle=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Sie(s),v=Woe(h),g=Dle(l,c),y=xae(v),m=0,b=f||Vle,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Gle(E,d)}else switch(e){case 4:return!1;case 7:Gle(E,d)}return i?-1:r||o?o:E}},qle={forEach:Wle(0),map:Wle(1),filter:Wle(2),some:Wle(3),every:Wle(4),find:Wle(5),findIndex:Wle(6),filterReject:Wle(7)},Kle=Sle.getWeakData,Yle=pae.set,Xle=pae.getterFor,Zle=qle.find,Jle=qle.findIndex,Qle=zoe([].splice),ece=0,tce=function(e){return e.frozen||(e.frozen=new nce)},nce=function(){this.entries=[]},rce=function(e,t){return Zle(e.entries,(function(e){return e[0]===t}))};nce.prototype={get:function(e){var t=rce(this,e);if(t)return t[1]},has:function(e){return!!rce(this,e)},set:function(e,t){var n=rce(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Jle(this.entries,(function(t){return t[0]===e}));return~t&&Qle(this.entries,t,1),!!~t}};var oce,ice={getConstructor:function(e,t,n,r){var o=e((function(e,o){Rle(e,i),Yle(e,{type:t,id:ece++,frozen:void 0}),null!=o&&Ple(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Xle(t),u=function(e,t,n){var r=a(e),o=Kle(Gie(t),!0);return!0===o?tce(r).set(t,n):o[r.id]=n,e};return hle(i,{delete:function(e){var t=a(this);if(!Zoe(e))return!1;var n=Kle(e);return!0===n?tce(t).delete(e):n&&Die(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!Zoe(e))return!1;var n=Kle(e);return!0===n?tce(t).has(e):n&&Die(n,t.id)}}),hle(i,n?{get:function(e){var t=a(this);if(Zoe(e)){var n=Kle(e);return!0===n?tce(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},ace=pae.enforce,uce=!xoe.ActiveXObject&&"ActiveXObject"in xoe,sce=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},lce=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=xoe[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=zoe(u[e]);mae(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Zoe(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!Zoe(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Zoe(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Gae(e,!Xoe(a)||!(o||u.forEach&&!Toe((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Sle.enable();else if(Gae(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=Toe((function(){f.has(1)})),h=Hle((function(e){new a(e)})),v=!o&&Toe((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Rle(e,u);var n=function(e,t,n){var r,o;return ele&&Xoe(r=t.constructor)&&r!==n&&Zoe(o=r.prototype)&&o!==n.prototype&&ele(e,o),e}(new a,e,s);return null!=t&&Ple(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,qae({global:!0,forced:s!=a},l),Yse(s,e),o||n.setStrong(s,e,r),s}("WeakMap",sce,ice);if(nae&&uce){oce=ice.getConstructor(sce,"WeakMap",!0),Sle.enable();var cce=lce.prototype,fce=zoe(cce.delete),dce=zoe(cce.has),pce=zoe(cce.get),hce=zoe(cce.set);hle(cce,{delete:function(e){if(Zoe(e)&&!Ele(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),fce(this,e)||t.frozen.delete(e)}return fce(this,e)},has:function(e){if(Zoe(e)&&!Ele(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)||t.frozen.has(e)}return dce(this,e)},get:function(e){if(Zoe(e)&&!Ele(e)){var t=ace(this);return t.frozen||(t.frozen=new oce),dce(this,e)?pce(this,e):t.frozen.get(e)}return pce(this,e)},set:function(e,t){if(Zoe(e)&&!Ele(e)){var n=ace(this);n.frozen||(n.frozen=new oce),dce(this,e)?hce(this,e,t):n.frozen.set(e,t)}else hce(this,e,t);return this}})}var vce={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},gce=Mie("span").classList,yce=gce&&gce.constructor&&gce.constructor.prototype,mce=yce===Object.prototype?void 0:yce,bce=Fie("iterator"),Ece=Fie("toStringTag"),wce=cle.values,Sce=function(e,t){if(e){if(e[bce]!==wce)try{Yie(e,bce,wce)}catch(t){e[bce]=wce}if(e[Ece]||Yie(e,Ece,t),vce[t])for(var n in cle)if(e[n]!==cle[n])try{Yie(e,n,cle[n])}catch(t){e[n]=cle[n]}}};for(var Cce in vce)Sce(xoe[Cce]&&xoe[Cce].prototype,Cce);Sce(mce,"DOMTokenList");var Dce=function(e,t){var n=[][e];return!!n&&Toe((function(){n.call(null,t||function(){throw 1},1)}))},Ace=qle.forEach,Oce=Dce("forEach")?[].forEach:function(e){return Ace(this,e,arguments.length>1?arguments[1]:void 0)},xce=function(e){if(e&&e.forEach!==Oce)try{Yie(e,"forEach",Oce)}catch(t){e.forEach=Oce}};for(var Tce in vce)vce[Tce]&&xce(xoe[Tce]&&xoe[Tce].prototype);xce(mce);var Nce,kce,Bce,Ice,Fce=xoe.Promise,Pce=Fie("species"),_ce=/(?:ipad|iphone|ipod).*applewebkit/i.test(tie),Rce="process"==$oe(xoe.process),Lce=xoe.setImmediate,jce=xoe.clearImmediate,Mce=xoe.process,zce=xoe.Dispatch,Hce=xoe.Function,Uce=xoe.MessageChannel,$ce=xoe.String,Vce=0,Gce={};try{Nce=xoe.location}catch(Ml){}var Wce=function(e){if(Die(Gce,e)){var t=Gce[e];delete Gce[e],t()}},qce=function(e){return function(){Wce(e)}},Kce=function(e){Wce(e.data)},Yce=function(e){xoe.postMessage($ce(e),Nce.protocol+"//"+Nce.host)};Lce&&jce||(Lce=function(e){var t=fue(arguments,1);return Gce[++Vce]=function(){nse(Xoe(e)?e:Hce(e),void 0,t)},kce(Vce),Vce},jce=function(e){delete Gce[e]},Rce?kce=function(e){Mce.nextTick(qce(e))}:zce&&zce.now?kce=function(e){zce.now(qce(e))}:Uce&&!_ce?(Ice=(Bce=new Uce).port2,Bce.port1.onmessage=Kce,kce=Dle(Ice.postMessage,Ice)):xoe.addEventListener&&Xoe(xoe.postMessage)&&!xoe.importScripts&&Nce&&"file:"!==Nce.protocol&&!Toe(Yce)?(kce=Yce,xoe.addEventListener("message",Kce,!1)):kce="onreadystatechange"in Mie("script")?function(e){xue.appendChild(Mie("script")).onreadystatechange=function(){xue.removeChild(this),Wce(e)}}:function(e){setTimeout(qce(e),0)});var Xce,Zce,Jce,Qce,efe,tfe,nfe,rfe,ofe={set:Lce,clear:jce},ife=/ipad|iphone|ipod/i.test(tie)&&void 0!==xoe.Pebble,afe=/web0s(?!.*chrome)/i.test(tie),ufe=Uie.f,sfe=ofe.set,lfe=xoe.MutationObserver||xoe.WebKitMutationObserver,cfe=xoe.document,ffe=xoe.process,dfe=xoe.Promise,pfe=ufe(xoe,"queueMicrotask"),hfe=pfe&&pfe.value;hfe||(Xce=function(){var e,t;for(Rce&&(e=ffe.domain)&&e.exit();Zce;){t=Zce.fn,Zce=Zce.next;try{t()}catch(e){throw Zce?Qce():Jce=void 0,e}}Jce=void 0,e&&e.enter()},_ce||Rce||afe||!lfe||!cfe?!ife&&dfe&&dfe.resolve?((nfe=dfe.resolve(void 0)).constructor=dfe,rfe=Dle(nfe.then,nfe),Qce=function(){rfe(Xce)}):Rce?Qce=function(){ffe.nextTick(Xce)}:(sfe=Dle(sfe,xoe),Qce=function(){sfe(Xce)}):(efe=!0,tfe=cfe.createTextNode(""),new lfe(Xce).observe(tfe,{characterData:!0}),Qce=function(){tfe.data=efe=!efe}));var vfe,gfe,yfe,mfe,bfe=hfe||function(e){var t={fn:e,next:void 0};Jce&&(Jce.next=t),Zce||(Zce=t,Qce()),Jce=t},Efe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=hie(t),this.reject=hie(n)},wfe={f:function(e){return new Efe(e)}},Sfe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Cfe="object"==typeof window,Dfe=ofe.set,Afe=Fie("species"),Ofe="Promise",xfe=pae.getterFor(Ofe),Tfe=pae.set,Nfe=pae.getterFor(Ofe),kfe=Fce&&Fce.prototype,Bfe=Fce,Ife=kfe,Ffe=xoe.TypeError,Pfe=xoe.document,_fe=xoe.process,Rfe=wfe.f,Lfe=Rfe,jfe=!!(Pfe&&Pfe.createEvent&&xoe.dispatchEvent),Mfe=Xoe(xoe.PromiseRejectionEvent),zfe=!1,Hfe=Gae(Ofe,(function(){var e=eae(Bfe),t=e!==String(Bfe);if(!t&&66===aie)return!0;if(aie>=51&&/native code/.test(e))return!1;var n=new Bfe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Afe]=r,!(zfe=n.then((function(){}))instanceof r)||!t&&Cfe&&!Mfe})),Ufe=Hfe||!Hle((function(e){Bfe.all(e).catch((function(){}))})),$fe=function(e){var t;return!(!Zoe(e)||!Xoe(t=e.then))&&t},Vfe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;bfe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Kfe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Ffe("Promise-chain cycle")):(u=$fe(a))?Boe(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Wfe(e)}))}},Gfe=function(e,t,n){var r,o;jfe?((r=Pfe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),xoe.dispatchEvent(r)):r={promise:t,reason:n},!Mfe&&(o=xoe["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=xoe.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Wfe=function(e){Boe(Dfe,xoe,(function(){var t,n=e.facade,r=e.value;if(qfe(e)&&(t=Sfe((function(){Rce?_fe.emit("unhandledRejection",r,n):Gfe("unhandledrejection",n,r)})),e.rejection=Rce||qfe(e)?2:1,t.error))throw t.value}))},qfe=function(e){return 1!==e.rejection&&!e.parent},Kfe=function(e){Boe(Dfe,xoe,(function(){var t=e.facade;Rce?_fe.emit("rejectionHandled",t):Gfe("rejectionhandled",t,e.value)}))},Yfe=function(e,t,n){return function(r){e(t,r,n)}},Xfe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Vfe(e,!0))},Zfe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ffe("Promise can't be resolved itself");var r=$fe(t);r?bfe((function(){var n={done:!1};try{Boe(r,t,Yfe(Zfe,n,e),Yfe(Xfe,n,e))}catch(t){Xfe(n,t,e)}})):(e.value=t,e.state=1,Vfe(e,!1))}catch(t){Xfe({done:!1},t,e)}}};if(Hfe&&(Ife=(Bfe=function(e){Rle(this,Ife),hie(e),Boe(vfe,this);var t=xfe(this);try{e(Yfe(Zfe,t),Yfe(Xfe,t))}catch(e){Xfe(t,e)}}).prototype,(vfe=function(e){Tfe(this,{type:Ofe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hle(Ife,{then:function(e,t){var n=Nfe(this),r=n.reactions,o=Rfe(sse(this,Bfe));return o.ok=!Xoe(e)||e,o.fail=Xoe(t)&&t,o.domain=Rce?_fe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&Vfe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),gfe=function(){var e=new vfe,t=xfe(e);this.promise=e,this.resolve=Yfe(Zfe,t),this.reject=Yfe(Xfe,t)},wfe.f=Rfe=function(e){return e===Bfe||e===yfe?new gfe(e):Lfe(e)},Xoe(Fce)&&kfe!==Object.prototype)){mfe=kfe.then,zfe||(mae(kfe,"then",(function(e,t){var n=this;return new Bfe((function(e,t){Boe(mfe,n,e,t)})).then(e,t)}),{unsafe:!0}),mae(kfe,"catch",Ife.catch,{unsafe:!0}));try{delete kfe.constructor}catch(Ml){}ele&&ele(kfe,Ife)}qae({global:!0,wrap:!0,forced:Hfe},{Promise:Bfe}),Yse(Bfe,Ofe,!1),function(e){var t=Qoe("Promise"),n=Kie.f;Noe&&t&&!t[Pce]&&n(t,Pce,{configurable:!0,get:function(){return this}})}(),yfe=Qoe(Ofe),qae({target:Ofe,stat:!0,forced:Hfe},{reject:function(e){var t=Rfe(this);return Boe(t.reject,void 0,e),t.promise}}),qae({target:Ofe,stat:!0,forced:Hfe},{resolve:function(e){return function(e,t){if(Gie(e),Zoe(t)&&t.constructor===e)return t;var n=wfe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),qae({target:Ofe,stat:!0,forced:Ufe},{all:function(e){var t=this,n=Rfe(t),r=n.resolve,o=n.reject,i=Sfe((function(){var n=hie(t.resolve),i=[],a=0,u=1;Ple(e,(function(e){var s=a++,l=!1;u++,Boe(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Rfe(t),r=n.reject,o=Sfe((function(){var o=hie(t.resolve);Ple(e,(function(e){Boe(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Jfe=yae.PROPER,Qfe=RegExp.prototype,ede=Qfe.toString,tde=zoe(Eue),nde=Toe((function(){return"/a/b"!=ede.call({source:"a",flags:"b"})})),rde=Jfe&&"toString"!=ede.name;(nde||rde)&&mae(RegExp.prototype,"toString",(function(){var e=Gie(this),t=bue(e.source),n=e.flags;return"/"+t+"/"+bue(void 0===n&&eie(Qfe,e)&&!("flags"in Qfe)?tde(e):n)}),{unsafe:!0});var ode=yae.EXISTS,ide=Kie.f,ade=Function.prototype,ude=zoe(ade.toString),sde=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,lde=zoe(sde.exec);Noe&&!ode&&ide(ade,"name",{configurable:!0,get:function(){try{return lde(sde,ude(this))[1]}catch(e){return""}}});var cde=new WeakMap;function fde(e){return e.getMenuConfig("uploadImage")}function dde(e,t){return Tse(this,void 0,void 0,(function(){return Nse(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;VH(e,i,t.name,a),n("ok")}}}))]}))}))}function pde(e,t){return Tse(this,void 0,void 0,(function(){var n,r,o,i;return Nse(this,(function(a){switch(a.label){case 0:return n=function(e){var t=cde.get(e);if(null!=t)return t;var n=fde(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=KI(xse(xse({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return VH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;VH(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;VH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),cde.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function hde(e,t){var n,r;return Tse(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Nse(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=fde(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=kse(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,dde(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return VH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,pde(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var vde=zoe([].join),gde=Woe!=Object,yde=Dce("join",",");qae({target:"Array",proto:!0,forced:gde||!yde},{join:function(e){return vde(Yoe(this),void 0===e?",":e)}}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),dh&&(Mp.fn.remove=dh),Wp&&(Mp.fn.val=Wp),gh&&(Mp.fn.click=gh),Jp&&(Mp.fn.hide=Jp);var mde=function(){function e(){this.title=UF("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return GH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return VH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;hde(e,t)}))}},e}(),bde={menus:[{key:"uploadImage",factory:function(){return new mde},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(GH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?hde(e,o):t(r)}},n}};MF("en",{highLightModule:{selectLang:"Language"}}),MF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var Ede="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function wde(e){var t={exports:{}};return e(t,t.exports),t.exports}var Sde,Cde,Dde=function(e){return e&&e.Math==Math&&e},Ade=Dde("object"==typeof globalThis&&globalThis)||Dde("object"==typeof window&&window)||Dde("object"==typeof self&&self)||Dde("object"==typeof Ede&&Ede)||function(){return this}()||Function("return this")(),Ode=Object.defineProperty,xde=function(e,t){try{Ode(Ade,e,{value:t,configurable:!0,writable:!0})}catch(n){Ade[e]=t}return t},Tde=Ade["__core-js_shared__"]||xde("__core-js_shared__",{}),Nde=wde((function(e){(e.exports=function(e,t){return Tde[e]||(Tde[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),kde=Function.prototype,Bde=kde.bind,Ide=kde.call,Fde=Bde&&Bde.bind(Ide),Pde=Bde?function(e){return e&&Fde(Ide,e)}:function(e){return e&&function(){return Ide.apply(e,arguments)}},_de=Ade.TypeError,Rde=function(e){if(null==e)throw _de("Can't call method on "+e);return e},Lde=Ade.Object,jde=function(e){return Lde(Rde(e))},Mde=Pde({}.hasOwnProperty),zde=Object.hasOwn||function(e,t){return Mde(jde(e),t)},Hde=0,Ude=Math.random(),$de=Pde(1..toString),Vde=function(e){return"Symbol("+(void 0===e?"":e)+")_"+$de(++Hde+Ude,36)},Gde=function(e){return"function"==typeof e},Wde=function(e){return Gde(e)?e:void 0},qde=function(e,t){return arguments.length<2?Wde(Ade[e]):Ade[e]&&Ade[e][t]},Kde=qde("navigator","userAgent")||"",Yde=Ade.process,Xde=Ade.Deno,Zde=Yde&&Yde.versions||Xde&&Xde.version,Jde=Zde&&Zde.v8;Jde&&(Cde=(Sde=Jde.split("."))[0]>0&&Sde[0]<4?1:+(Sde[0]+Sde[1])),!Cde&&Kde&&(!(Sde=Kde.match(/Edge\/(\d+)/))||Sde[1]>=74)&&(Sde=Kde.match(/Chrome\/(\d+)/))&&(Cde=+Sde[1]);var Qde=Cde,epe=function(e){try{return!!e()}catch(e){return!0}},tpe=!!Object.getOwnPropertySymbols&&!epe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qde&&Qde<41})),npe=tpe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,rpe=Nde("wks"),ope=Ade.Symbol,ipe=ope&&ope.for,ape=npe?ope:ope&&ope.withoutSetter||Vde,upe=function(e){if(!zde(rpe,e)||!tpe&&"string"!=typeof rpe[e]){var t="Symbol."+e;tpe&&zde(ope,e)?rpe[e]=ope[e]:rpe[e]=npe&&ipe?ipe(t):ape(t)}return rpe[e]},spe={};spe[upe("toStringTag")]="z";var lpe="[object z]"===String(spe),cpe=!epe((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),fpe=function(e){return"object"==typeof e?null!==e:Gde(e)},dpe=Ade.document,ppe=fpe(dpe)&&fpe(dpe.createElement),hpe=function(e){return ppe?dpe.createElement(e):{}},vpe=!cpe&&!epe((function(){return 7!=Object.defineProperty(hpe("div"),"a",{get:function(){return 7}}).a})),gpe=Ade.String,ype=Ade.TypeError,mpe=function(e){if(fpe(e))return e;throw ype(gpe(e)+" is not an object")},bpe=Function.prototype.call,Epe=bpe.bind?bpe.bind(bpe):function(){return bpe.apply(bpe,arguments)},wpe=Pde({}.isPrototypeOf),Spe=Ade.Object,Cpe=npe?function(e){return"symbol"==typeof e}:function(e){var t=qde("Symbol");return Gde(t)&&wpe(t.prototype,Spe(e))},Dpe=Ade.String,Ape=function(e){try{return Dpe(e)}catch(e){return"Object"}},Ope=Ade.TypeError,xpe=function(e){if(Gde(e))return e;throw Ope(Ape(e)+" is not a function")},Tpe=function(e,t){var n=e[t];return null==n?void 0:xpe(n)},Npe=Ade.TypeError,kpe=Ade.TypeError,Bpe=upe("toPrimitive"),Ipe=function(e){var t=function(e,t){if(!fpe(e)||Cpe(e))return e;var n,r=Tpe(e,Bpe);if(r){if(void 0===t&&(t="default"),n=Epe(r,e,t),!fpe(n)||Cpe(n))return n;throw kpe("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Gde(n=e.toString)&&!fpe(r=Epe(n,e)))return r;if(Gde(n=e.valueOf)&&!fpe(r=Epe(n,e)))return r;if("string"!==t&&Gde(n=e.toString)&&!fpe(r=Epe(n,e)))return r;throw Npe("Can't convert object to primitive value")}(e,t)}(e,"string");return Cpe(t)?t:t+""},Fpe=Ade.TypeError,Ppe=Object.defineProperty,_pe={f:cpe?Ppe:function(e,t,n){if(mpe(e),t=Ipe(t),mpe(n),vpe)try{return Ppe(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Fpe("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Rpe=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Lpe=cpe?function(e,t,n){return _pe.f(e,t,Rpe(1,n))}:function(e,t,n){return e[t]=n,e},jpe=Pde(Function.toString);Gde(Tde.inspectSource)||(Tde.inspectSource=function(e){return jpe(e)});var Mpe,zpe,Hpe,Upe=Tde.inspectSource,$pe=Ade.WeakMap,Vpe=Gde($pe)&&/native code/.test(Upe($pe)),Gpe=Nde("keys"),Wpe=function(e){return Gpe[e]||(Gpe[e]=Vde(e))},qpe={},Kpe=Ade.TypeError,Ype=Ade.WeakMap;if(Vpe||Tde.state){var Xpe=Tde.state||(Tde.state=new Ype),Zpe=Pde(Xpe.get),Jpe=Pde(Xpe.has),Qpe=Pde(Xpe.set);Mpe=function(e,t){if(Jpe(Xpe,e))throw new Kpe("Object already initialized");return t.facade=e,Qpe(Xpe,e,t),t},zpe=function(e){return Zpe(Xpe,e)||{}},Hpe=function(e){return Jpe(Xpe,e)}}else{var ehe=Wpe("state");qpe[ehe]=!0,Mpe=function(e,t){if(zde(e,ehe))throw new Kpe("Object already initialized");return t.facade=e,Lpe(e,ehe,t),t},zpe=function(e){return zde(e,ehe)?e[ehe]:{}},Hpe=function(e){return zde(e,ehe)}}var the={set:Mpe,get:zpe,has:Hpe,enforce:function(e){return Hpe(e)?zpe(e):Mpe(e,{})},getterFor:function(e){return function(t){var n;if(!fpe(t)||(n=zpe(t)).type!==e)throw Kpe("Incompatible receiver, "+e+" required");return n}}},nhe=Function.prototype,rhe=cpe&&Object.getOwnPropertyDescriptor,ohe=zde(nhe,"name"),ihe={EXISTS:ohe,PROPER:ohe&&"something"===function(){}.name,CONFIGURABLE:ohe&&(!cpe||cpe&&rhe(nhe,"name").configurable)},ahe=wde((function(e){var t=ihe.CONFIGURABLE,n=the.get,r=the.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;Gde(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zde(i,"name")||t&&i.name!==f)&&Lpe(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Ade?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:Lpe(e,n,i)):l?e[n]=i:xde(n,i)})(Function.prototype,"toString",(function(){return Gde(this)&&n(this).source||Upe(this)}))})),uhe=Pde({}.toString),she=Pde("".slice),lhe=function(e){return she(uhe(e),8,-1)},che=upe("toStringTag"),fhe=Ade.Object,dhe="Arguments"==lhe(function(){return arguments}()),phe=lpe?lhe:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=fhe(e),che))?n:dhe?lhe(t):"Object"==(r=lhe(t))&&Gde(t.callee)?"Arguments":r},hhe=lpe?{}.toString:function(){return"[object "+phe(this)+"]"};lpe||ahe(Object.prototype,"toString",hhe,{unsafe:!0});var vhe,ghe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},yhe=hpe("span").classList,mhe=yhe&&yhe.constructor&&yhe.constructor.prototype,bhe=mhe===Object.prototype?void 0:mhe,Ehe=Pde(Pde.bind),whe=Ade.Object,She=Pde("".split),Che=epe((function(){return!whe("z").propertyIsEnumerable(0)}))?function(e){return"String"==lhe(e)?She(e,""):whe(e)}:whe,Dhe=Math.ceil,Ahe=Math.floor,Ohe=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ahe:Dhe)(t)},xhe=Math.min,The=function(e){return e>0?xhe(Ohe(e),9007199254740991):0},Nhe=function(e){return The(e.length)},khe=Array.isArray||function(e){return"Array"==lhe(e)},Bhe=function(){},Ihe=[],Fhe=qde("Reflect","construct"),Phe=/^\s*(?:class|function)\b/,_he=Pde(Phe.exec),Rhe=!Phe.exec(Bhe),Lhe=function(e){if(!Gde(e))return!1;try{return Fhe(Bhe,Ihe,e),!0}catch(e){return!1}},jhe=!Fhe||epe((function(){var e;return Lhe(Lhe.call)||!Lhe(Object)||!Lhe((function(){e=!0}))||e}))?function(e){if(!Gde(e))return!1;switch(phe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Rhe||!!_he(Phe,Upe(e))}:Lhe,Mhe=upe("species"),zhe=Ade.Array,Hhe=function(e,t){return new(function(e){var t;return khe(e)&&(t=e.constructor,(jhe(t)&&(t===zhe||khe(t.prototype))||fpe(t)&&null===(t=t[Mhe]))&&(t=void 0)),void 0===t?zhe:t}(e))(0===t?0:t)},Uhe=Pde([].push),$he=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=jde(s),v=Che(h),g=function(e,t){return xpe(e),void 0===t?e:Ehe?Ehe(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Nhe(v),m=0,b=f||Hhe,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Uhe(E,d)}else switch(e){case 4:return!1;case 7:Uhe(E,d)}return i?-1:r||o?o:E}},Vhe=[$he(0),$he(1),$he(2),$he(3),$he(4),$he(5),$he(6),$he(7)][0],Ghe=(vhe=[].forEach)&&epe((function(){vhe.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return Vhe(this,e,arguments.length>1?arguments[1]:void 0)},Whe=function(e){if(e&&e.forEach!==Ghe)try{Lpe(e,"forEach",Ghe)}catch(t){e.forEach=Ghe}};for(var qhe in ghe)ghe[qhe]&&Whe(Ade[qhe]&&Ade[qhe].prototype);Whe(bhe);var Khe={}.propertyIsEnumerable,Yhe=Object.getOwnPropertyDescriptor,Xhe={f:Yhe&&!Khe.call({1:2},1)?function(e){var t=Yhe(this,e);return!!t&&t.enumerable}:Khe},Zhe=function(e){return Che(Rde(e))},Jhe=Object.getOwnPropertyDescriptor,Qhe={f:cpe?Jhe:function(e,t){if(e=Zhe(e),t=Ipe(t),vpe)try{return Jhe(e,t)}catch(e){}if(zde(e,t))return Rpe(!Epe(Xhe.f,e,t),e[t])}},eve=Math.max,tve=Math.min,nve=function(e,t){var n=Ohe(e);return n<0?eve(n+t,0):tve(n,t)},rve=function(e){return function(t,n,r){var o,i=Zhe(t),a=Nhe(i),u=nve(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},ove=(rve(!0),rve(!1)),ive=Pde([].push),ave=function(e,t){var n,r=Zhe(e),o=0,i=[];for(n in r)!zde(qpe,n)&&zde(r,n)&&ive(i,n);for(;t.length>o;)zde(r,n=t[o++])&&(~ove(i,n)||ive(i,n));return i},uve=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sve=uve.concat("length","prototype"),lve={f:Object.getOwnPropertyNames||function(e){return ave(e,sve)}},cve={f:Object.getOwnPropertySymbols},fve=Pde([].concat),dve=qde("Reflect","ownKeys")||function(e){var t=lve.f(mpe(e)),n=cve.f;return n?fve(t,n(e)):t},pve=function(e,t){for(var n=dve(t),r=_pe.f,o=Qhe.f,i=0;i<n.length;i++){var a=n[i];zde(e,a)||r(e,a,o(t,a))}},hve=/#|\.prototype\./,vve=function(e,t){var n=yve[gve(e)];return n==bve||n!=mve&&(Gde(t)?epe(t):!!t)},gve=vve.normalize=function(e){return String(e).replace(hve,".").toLowerCase()},yve=vve.data={},mve=vve.NATIVE="N",bve=vve.POLYFILL="P",Eve=vve,wve=Qhe.f,Sve=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Ade:l?Ade[u]||xde(u,{}):(Ade[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=wve(n,r))&&a.value:n[r],!Eve(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;pve(i,o)}(e.sham||o&&o.sham)&&Lpe(i,"sham",!0),ahe(n,r,i,e)}},Cve=Object.keys||function(e){return ave(e,uve)},Dve=Object.assign,Ave=Object.defineProperty,Ove=Pde([].concat),xve=!Dve||epe((function(){if(cpe&&1!==Dve({b:1},Dve(Ave({},"a",{enumerable:!0,get:function(){Ave(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Dve({},e)[n]||Cve(Dve({},t)).join("")!=r}))?function(e,t){for(var n=jde(e),r=arguments.length,o=1,i=cve.f,a=Xhe.f;r>o;)for(var u,s=Che(arguments[o++]),l=i?Ove(Cve(s),i(s)):Cve(s),c=l.length,f=0;c>f;)u=l[f++],cpe&&!Epe(a,s,u)||(n[u]=s[u]);return n}:Dve;Sve({target:"Object",stat:!0,forced:Object.assign!==xve},{assign:xve});var Tve=wde((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var E=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,E+"g")}for(var w=v.pattern||v,S=r.next,C=s;S!==t.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(t.length>e.length)return;if(!(D instanceof i)){var A,O=1;if(m){if(!(A=a(w,C,e,y)))break;var x=A.index,T=A.index+A[0].length,N=C;for(N+=S.value.length;x>=N;)N+=(S=S.next).value.length;if(C=N-=S.value.length,S.value instanceof i)continue;for(var k=S;k!==t.tail&&(N<T||"string"==typeof k.value);k=k.next)O++,N+=k.value.length;O--,D=e.slice(C,N),A.index-=C}else if(!(A=a(w,0,D,y)))continue;x=A.index;var B=A[0],I=D.slice(0,x),F=D.slice(x+B.length),P=C+D.length;f&&P>f.reach&&(f.reach=P);var _=S.prev;if(I&&(_=l(t,_,I),C+=I.length),c(t,_,O),S=l(t,_,new i(d,g?o.tokenize(B,g):B,b,B)),F&&l(t,S,F),O>1){var R={cause:d+","+h,reach:P};u(e,t,n,S.prev,C,R),f&&R.reach>f.reach&&(f.reach=R.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
24
|
+
*/function pC(e){return"[object Object]"===Object.prototype.toString.call(e)}cC({target:"Object",stat:!0,forced:dC},{keys:function(e){return fC(SE(e))}});var hC={isHistory(e){return!1!==pC(t=e)&&(void 0===(n=t.constructor)||!1!==pC(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||jf.isOperationList(e.redos[0]))&&(0===e.undos.length||jf.isOperationList(e.undos[0]));var t,n,r}},vC=new WeakMap,gC=new WeakMap,yC={isHistoryEditor:e=>hC.isHistory(e.history)&&Nf.isEditor(e),isMerging:e=>gC.get(e),isSaving:e=>vC.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=yC.isMerging(e);gC.set(e,!1),t(),gC.set(e,n)},withoutSaving(e,t){var n=yC.isSaving(e);vC.set(e,!1),t(),vC.set(e,n)}},mC=lE.String,bC=function(e){if("Symbol"===Zw(e))throw TypeError("Cannot convert a Symbol value to a string");return mC(e)},EC=function(){var e=nw(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},wC=$w.PROPER,SC=RegExp.prototype,CC=SC.toString,DC=mE(EC),AC=jE((function(){return"/a/b"!=CC.call({source:"a",flags:"b"})})),xC=wC&&"toString"!=CC.name;(AC||xC)&&Vw(RegExp.prototype,"toString",(function(){var e=nw(this),t=bC(e.source),n=e.flags;return"/"+t+"/"+bC(void 0===n&&iw(SC,e)&&!("flags"in SC)?DC(e):n)}),{unsafe:!0});var OC,TC=KE?Object.defineProperties:function(e,t){nw(e);for(var n,r=jS(t),o=fC(t),i=o.length,a=0;i>a;)bw.f(e,n=o[a++],r[n]);return e},NC=BE("document","documentElement"),kC=kw("IE_PROTO"),BC=function(){},IC=function(e){return"<script>"+e+"<\/script>"},FC=function(e){e.write(IC("")),e.close();var t=e.parentWindow.Object;return e=null,t},PC=function(){try{OC=new ActiveXObject("htmlfile")}catch(e){}var e,t;PC="undefined"!=typeof document?document.domain&&OC?FC(OC):((t=JE("iframe")).style.display="none",NC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(IC("document.F=Object")),e.close(),e.F):FC(OC);for(var n=YS.length;n--;)delete PC.prototype[YS[n]];return PC()};Bw[kC]=!0;var RC=Object.create||function(e,t){var n;return null!==e?(BC.prototype=nw(e),n=new BC,BC.prototype=null,n[kC]=e):n=PC(),void 0===t?n:TC(n,t)},_C=GE("unscopables"),LC=Array.prototype;null==LC[_C]&&bw.f(LC,_C,{configurable:!0,value:RC(null)});var jC=function(e){LC[_C][e]=!0},MC=GS.includes;cC({target:"Array",proto:!0},{includes:function(e){return MC(this,e,arguments.length>1?arguments[1]:void 0)}}),jC("includes");var zC=GE("match"),HC=function(e){var t;return YE(e)&&(void 0!==(t=e[zC])?!!t:"RegExp"==qw(e))},UC=lE.TypeError,$C=function(e){if(HC(e))throw UC("The method doesn't accept regular expressions");return e},VC=GE("match"),GC=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[VC]=!1,"/./"[e](t)}catch(e){}}return!1},WC=mE("".indexOf);cC({target:"String",proto:!0,forced:!GC("includes")},{includes:function(e){return!!~WC(bC(EE(this)),bC($C(e)),arguments.length>1?arguments[1]:void 0)}});var qC=/"/g,KC=mE("".replace);cC({target:"String",proto:!0,forced:("anchor",jE((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=bC(EE(this)),r="<a",(r+=' name="'+KC(bC(t),qC,""")+'"')+">"+n+"</a>";var t,n,r}});var YC=function(e,t,n){var r,o;nw(e);try{if(!(r=dw(e,"return"))){if("throw"===t)throw n;return n}r=ow(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return nw(r),n},XC=function(e,t,n,r){try{return r?t(nw(n)[0],n[1]):t(n)}catch(t){YC(e,"throw",t)}},ZC={},JC=GE("iterator"),QC=Array.prototype,eD=function(e){return void 0!==e&&(ZC.Array===e||QC[JC]===e)},tD=function(e,t,n){var r=gw(t);r in e?bw.f(e,r,Ew(0,n)):e[r]=n},nD=GE("iterator"),rD=function(e){if(null!=e)return dw(e,nD)||dw(e,"@@iterator")||ZC[Zw(e)]},oD=lE.TypeError,iD=function(e,t){var n=arguments.length<2?rD(e):t;if(fw(n))return nw(ow(n,e));throw oD(lw(e)+" is not iterable")},aD=lE.Array,uD=GE("iterator"),sD=!1;try{var lD=0,cD={next:function(){return{done:!!lD++}},return:function(){sD=!0}};cD[uD]=function(){return this},Array.from(cD,(function(){throw 2}))}catch(PO){}var fD=function(e,t){if(!t&&!sD)return!1;var n=!1;try{var r={};r[uD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},dD=!fD((function(e){Array.from(e)}));cC({target:"Array",stat:!0,forced:dD},{from:function(e){var t=SE(e),n=SS(this),r=arguments.length,o=r>1?arguments[1]:void 0,i=void 0!==o;i&&(o=oS(o,r>2?arguments[2]:void 0));var a,u,s,l,c,f,d=rD(t),p=0;if(!d||this==aD&&eD(d))for(a=pS(t),u=n?new this(a):aD(a);a>p;p++)f=i?o(t[p],p):t[p],tD(u,p,f);else for(c=(l=iD(t,d)).next,u=n?new this:[];!(s=ow(c,l)).done;p++)f=i?XC(l,o,[s.value,p],!0):s.value,tD(u,p,f);return u.length=p,u}});var pD,hD,vD,gD=mE("".charAt),yD=mE("".charCodeAt),mD=mE("".slice),bD=function(e){return function(t,n){var r,o,i=bC(EE(t)),a=cS(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=yD(i,a))<55296||r>56319||a+1===u||(o=yD(i,a+1))<56320||o>57343?e?gD(i,a):r:e?mD(i,a,a+2):o-56320+(r-55296<<10)+65536}},ED={codeAt:bD(!1),charAt:bD(!0)},wD=!jE((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),SD=kw("IE_PROTO"),CD=lE.Object,DD=CD.prototype,AD=wD?CD.getPrototypeOf:function(e){var t=SE(e);if(DE(t,SD))return t[SD];var n=t.constructor;return NE(n)&&t instanceof n?n.prototype:t instanceof CD?DD:null},xD=GE("iterator"),OD=!1;[].keys&&("next"in(vD=[].keys())?(hD=AD(AD(vD)))!==Object.prototype&&(pD=hD):OD=!0);var TD=null==pD||jE((function(){var e={};return pD[xD].call(e)!==e}));TD&&(pD={}),NE(pD[xD])||Vw(pD,xD,(function(){return this}));var ND={IteratorPrototype:pD,BUGGY_SAFARI_ITERATORS:OD},kD=bw.f,BD=GE("toStringTag"),ID=function(e,t,n){e&&!DE(e=n?e:e.prototype,BD)&&kD(e,BD,{configurable:!0,value:t})},FD=ND.IteratorPrototype,PD=function(){return this},RD=lE.String,_D=lE.TypeError,LD=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=mE(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return nw(n),function(e){if("object"==typeof e||NE(e))return e;throw _D("Can't set "+RD(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),jD=$w.PROPER,MD=$w.CONFIGURABLE,zD=ND.IteratorPrototype,HD=ND.BUGGY_SAFARI_ITERATORS,UD=GE("iterator"),$D=function(){return this},VD=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=RC(FD,{next:Ew(1,n)}),ID(e,o,!1),ZC[o]=PD}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!HD&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[UD]||p["@@iterator"]||o&&p[o],v=!HD&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=AD(g.call(new e)))!==Object.prototype&&u.next&&(AD(u)!==zD&&(LD?LD(u,zD):NE(u[UD])||Vw(u,UD,$D)),ID(u,f,!0)),jD&&"values"==o&&h&&"values"!==h.name&&(MD?ww(p,"name","values"):(d=!0,v=function(){return ow(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(HD||d||!(l in p))&&Vw(p,l,s[l]);else cC({target:t,proto:!0,forced:HD||d},s);return p[UD]!==v&&Vw(p,UD,v,{name:o}),ZC[t]=v,s},GD=ED.charAt,WD=Mw.set,qD=Mw.getterFor("String Iterator");VD(String,"String",(function(e){WD(this,{type:"String Iterator",string:bC(e),index:0})}),(function(){var e,t=qD(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=GD(n,r),t.index+=e.length,{value:e,done:!1})}));var KD,YD=zS.f,XD=mE("".endsWith),ZD=mE("".slice),JD=Math.min,QD=GC("endsWith"),eA=!(QD||(KD=YD(String.prototype,"endsWith"),!KD||KD.writable));cC({target:"String",proto:!0,forced:!eA&&!QD},{endsWith:function(e){var t=bC(EE(this));$C(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:JD(dS(n),r),i=bC(e);return XD?XD(t,i,o):ZD(t,o-i.length,o)===i}});var tA=mE([].join),nA=uS!=Object,rA=NS("join",",");cC({target:"Array",proto:!0,forced:nA||!rA},{join:function(e){return tA(jS(this),void 0===e?",":e)}});var oA=GE("species"),iA=function(e){return LE>=51||!jE((function(){var t=[];return(t.constructor={})[oA]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},aA=TS.map,uA=iA("map");cC({target:"Array",proto:!0,forced:!uA},{map:function(e){return aA(this,e,arguments.length>1?arguments[1]:void 0)}});var sA=lE.RegExp,lA=jE((function(){var e=sA("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),cA=lA||jE((function(){return!sA("a","y").sticky})),fA={BROKEN_CARET:lA||jE((function(){var e=sA("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:cA,UNSUPPORTED_Y:lA},dA=lE.RegExp,pA=jE((function(){var e=dA(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),hA=lE.RegExp,vA=jE((function(){var e=hA("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),gA=Mw.get,yA=pE("native-string-replace",String.prototype.replace),mA=RegExp.prototype.exec,bA=mA,EA=mE("".charAt),wA=mE("".indexOf),SA=mE("".replace),CA=mE("".slice),DA=function(){var e=/a/,t=/b*/g;return ow(mA,e,"a"),ow(mA,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),AA=fA.BROKEN_CARET,xA=void 0!==/()??/.exec("")[1];(DA||xA||AA||pA||vA)&&(bA=function(e){var t,n,r,o,i,a,u,s=this,l=gA(s),c=bC(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ow(bA,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=AA&&s.sticky,h=ow(EC,s),v=s.source,g=0,y=c;if(p&&(h=SA(h,"y",""),-1===wA(h,"g")&&(h+="g"),y=CA(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==EA(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),xA&&(n=new RegExp("^"+v+"$(?!\\s)",h)),DA&&(r=s.lastIndex),o=ow(mA,p?n:s,y),p?o?(o.input=CA(o.input,g),o[0]=CA(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:DA&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),xA&&o&&o.length>1&&ow(yA,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=RC(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var OA=bA;cC({target:"RegExp",proto:!0,forced:/./.exec!==OA},{exec:OA});var TA=Function.prototype,NA=TA.apply,kA=TA.bind,BA=TA.call,IA="object"==typeof Reflect&&Reflect.apply||(kA?BA.bind(NA):function(){return BA.apply(NA,arguments)}),FA=GE("species"),PA=RegExp.prototype,RA=function(e,t,n,r){var o=GE(e),i=!jE((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jE((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[FA]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=mE(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=mE(e),s=t.exec;return s===OA||s===PA.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Vw(String.prototype,e,s[0]),Vw(PA,o,s[1])}r&&ww(PA[o],"sham",!0)},_A=ED.charAt,LA=function(e,t,n){return t+(n?_A(e,t).length:1)},jA=Math.floor,MA=mE("".charAt),zA=mE("".replace),HA=mE("".slice),UA=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,$A=/\$([$&'`]|\d{1,2})/g,VA=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=$A;return void 0!==o&&(o=SE(o),s=UA),zA(i,s,(function(i,s){var l;switch(MA(s,0)){case"$":return"$";case"&":return e;case"`":return HA(t,0,n);case"'":return HA(t,a);case"<":l=o[HA(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=jA(c/10);return 0===f?i:f<=u?void 0===r[f-1]?MA(s,1):r[f-1]+MA(s,1):i}l=r[c-1]}return void 0===l?"":l}))},GA=lE.TypeError,WA=function(e,t){var n=e.exec;if(NE(n)){var r=ow(n,e,t);return null!==r&&nw(r),r}if("RegExp"===qw(e))return ow(OA,e,t);throw GA("RegExp#exec called on incompatible receiver")},qA=GE("replace"),KA=Math.max,YA=Math.min,XA=mE([].concat),ZA=mE([].push),JA=mE("".indexOf),QA=mE("".slice),ex="$0"==="a".replace(/./,"$0"),tx=!!/./[qA]&&""===/./[qA]("a","$0");RA("replace",(function(e,t,n){var r=tx?"$":"$0";return[function(e,n){var r=EE(this),o=null==e?void 0:dw(e,qA);return o?ow(o,e,r,n):ow(t,bC(r),e,n)},function(e,o){var i=nw(this),a=bC(e);if("string"==typeof o&&-1===JA(o,r)&&-1===JA(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=NE(o);s||(o=bC(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=WA(i,a);if(null===d)break;if(ZA(f,d),!l)break;""===bC(d[0])&&(i.lastIndex=LA(a,dS(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=bC((d=f[g])[0]),m=KA(YA(cS(d.index),a.length),0),b=[],E=1;E<d.length;E++)ZA(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=XA([y],b,m,a);void 0!==w&&ZA(S,w);var C=bC(IA(o,void 0,S))}else C=VA(y,a,m,b,w,o);m>=v&&(h+=QA(a,v,m)+C,v=m+y.length)}return h+QA(a,v)}]}),!!jE((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!ex||tx);var nx=function(e,t){return nx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nx(e,t)};function rx(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nx(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ox=function(){return ox=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ox.apply(this,arguments)};function ix(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ax(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ux(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var sx=0,lx=function(){this.id=""+sx++},cx=Mw.set,fx=Mw.getterFor("Array Iterator"),dx=VD(Array,"Array",(function(e,t){cx(this,{type:"Array Iterator",target:jS(e),index:0,kind:t})}),(function(){var e=fx(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ZC.Arguments=ZC.Array,jC("keys"),jC("values"),jC("entries");var px=function(e,t,n){for(var r in t)Vw(e,r,t[r],n);return e},hx=lE.Array,vx=Math.max,gx=function(e,t,n){for(var r=pS(e),o=$S(t,r),i=$S(void 0===n?r:n,r),a=hx(vx(i-o,0)),u=0;o<i;o++,u++)tD(a,u,e[o]);return a.length=u,a},yx=ZS.f,mx="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bx={f:function(e){return mx&&"Window"==qw(e)?function(e){try{return yx(e)}catch(e){return gx(mx)}}(e):yx(jS(e))}},Ex=jE((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),wx=Object.isExtensible,Sx=jE((function(){wx(1)}))||Ex?function(e){return!!YE(e)&&(!Ex||"ArrayBuffer"!=qw(e))&&(!wx||wx(e))}:wx,Cx=!jE((function(){return Object.isExtensible(Object.preventExtensions({}))})),Dx=iE((function(e){var t=bw.f,n=!1,r=TE("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=ZS.f,t=mE([].splice),o={};o[r]=1,e(o).length&&(ZS.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},cC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:bx.f}))},fastKey:function(e,t){if(!YE(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!DE(e,r)){if(!Sx(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!DE(e,r)){if(!Sx(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Cx&&n&&Sx(e)&&!DE(e,r)&&i(e),e}};Bw[r]=!0})),Ax=lE.TypeError,xx=function(e,t){this.stopped=e,this.result=t},Ox=xx.prototype,Tx=function(e,t,n){var r,o,i,a,u,s,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=oS(t,c),v=function(e){return r&&YC(r,"normal",e),new xx(!0,e)},g=function(e){return f?(nw(e),p?h(e[0],e[1],v):h(e[0],e[1])):p?h(e,v):h(e)};if(d)r=e;else{if(!(o=rD(e)))throw Ax(lw(e)+" is not iterable");if(eD(o)){for(i=0,a=pS(e);a>i;i++)if((u=g(e[i]))&&iw(Ox,u))return u;return new xx(!1)}r=iD(e,o)}for(s=r.next;!(l=ow(s,r)).done;){try{u=g(l.value)}catch(e){YC(r,"throw",e)}if("object"==typeof u&&u&&iw(Ox,u))return u}return new xx(!1)},Nx=lE.TypeError,kx=function(e,t){if(iw(t,e))return e;throw Nx("Incorrect invocation")},Bx=function(e,t,n){var r,o;return LD&&NE(r=t.constructor)&&r!==n&&YE(o=r.prototype)&&o!==n.prototype&&LD(e,o),e},Ix=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=lE[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=mE(u[e]);Vw(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!YE(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!YE(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(sC(e,!NE(a)||!(o||u.forEach&&!jE((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Dx.enable();else if(sC(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=jE((function(){f.has(1)})),h=fD((function(e){new a(e)})),v=!o&&jE((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){kx(e,u);var n=Bx(new a,e,s);return null!=t&&Tx(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,cC({global:!0,forced:s!=a},l),ID(s,e),o||n.setStrong(s,e,r),s},Fx=Dx.getWeakData,Px=Mw.set,Rx=Mw.getterFor,_x=TS.find,Lx=TS.findIndex,jx=mE([].splice),Mx=0,zx=function(e){return e.frozen||(e.frozen=new Hx)},Hx=function(){this.entries=[]},Ux=function(e,t){return _x(e.entries,(function(e){return e[0]===t}))};Hx.prototype={get:function(e){var t=Ux(this,e);if(t)return t[1]},has:function(e){return!!Ux(this,e)},set:function(e,t){var n=Ux(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Lx(this.entries,(function(t){return t[0]===e}));return~t&&jx(this.entries,t,1),!!~t}};var $x,Vx={getConstructor:function(e,t,n,r){var o=e((function(e,o){kx(e,i),Px(e,{type:t,id:Mx++,frozen:void 0}),null!=o&&Tx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Rx(t),u=function(e,t,n){var r=a(e),o=Fx(nw(t),!0);return!0===o?zx(r).set(t,n):o[r.id]=n,e};return px(i,{delete:function(e){var t=a(this);if(!YE(e))return!1;var n=Fx(e);return!0===n?zx(t).delete(e):n&&DE(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!YE(e))return!1;var n=Fx(e);return!0===n?zx(t).has(e):n&&DE(n,t.id)}}),px(i,n?{get:function(e){var t=a(this);if(YE(e)){var n=Fx(e);return!0===n?zx(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Gx=Mw.enforce,Wx=!lE.ActiveXObject&&"ActiveXObject"in lE,qx=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Kx=Ix("WeakMap",qx,Vx);if(Tw&&Wx){$x=Vx.getConstructor(qx,"WeakMap",!0),Dx.enable();var Yx=Kx.prototype,Xx=mE(Yx.delete),Zx=mE(Yx.has),Jx=mE(Yx.get),Qx=mE(Yx.set);px(Yx,{delete:function(e){if(YE(e)&&!Sx(e)){var t=Gx(this);return t.frozen||(t.frozen=new $x),Xx(this,e)||t.frozen.delete(e)}return Xx(this,e)},has:function(e){if(YE(e)&&!Sx(e)){var t=Gx(this);return t.frozen||(t.frozen=new $x),Zx(this,e)||t.frozen.has(e)}return Zx(this,e)},get:function(e){if(YE(e)&&!Sx(e)){var t=Gx(this);return t.frozen||(t.frozen=new $x),Zx(this,e)?Jx(this,e):t.frozen.get(e)}return Jx(this,e)},set:function(e,t){if(YE(e)&&!Sx(e)){var n=Gx(this);n.frozen||(n.frozen=new $x),Zx(this,e)?Qx(this,e,t):n.frozen.set(e,t)}else Qx(this,e,t);return this}})}var eO=GE("iterator"),tO=GE("toStringTag"),nO=dx.values,rO=function(e,t){if(e){if(e[eO]!==nO)try{ww(e,eO,nO)}catch(t){e[eO]=nO}if(e[tO]||ww(e,tO,t),Qw[t])for(var n in dx)if(e[n]!==dx[n])try{ww(e,n,dx[n])}catch(t){e[n]=dx[n]}}};for(var oO in Qw)rO(lE[oO]&&lE[oO].prototype,oO);rO(nS,"DOMTokenList");var iO=new WeakMap,aO=new WeakMap,uO=new WeakMap,sO=new WeakMap,lO=new WeakMap,cO=new WeakMap,fO=new WeakMap,dO=new WeakMap,pO=new WeakMap,hO=new WeakMap,vO=new WeakMap,gO=new WeakMap,yO=new WeakMap,mO=new WeakMap,bO=new WeakMap,EO=new WeakMap,wO=new WeakMap,SO=new WeakMap,CO=new WeakMap,DO=new WeakMap,AO=new WeakMap,xO=new WeakMap,OO=new WeakMap,TO=new WeakMap,NO=new WeakMap,kO=TS.find,BO=!0;"find"in[]&&Array(1).find((function(){BO=!1})),cC({target:"Array",proto:!0,forced:BO},{find:function(e){return kO(this,e,arguments.length>1?arguments[1]:void 0)}}),jC("find"),cC({global:!0},{globalThis:lE});const IO=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),Zp&&(Mp.fn.offset=Zp),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),sh&&(Mp.fn.parent=sh),lh&&(Mp.fn.parents=lh),ih&&(Mp.fn.is=ih),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),th&&(Mp.fn.each=th),ph&&(Mp.fn.empty=ph);var FO,PO,RO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},_O=function(e){return LO(e)&&1===e.nodeType},LO=function(e){var t=RO(e);return!!t&&e instanceof t.Node},jO=function(e){var t=e&&e.anchorNode&&RO(e.anchorNode);return!!t&&e instanceof t.Selection},MO=function(e){return LO(e)&&3===e.nodeType},zO=function(e){var t,n,r;return null!==(t=window.document.getElementById(e))&&void 0!==t?t:(null===(r=null===(n=window.document.activeElement)||void 0===n?void 0:n.shadowRoot)||void 0===r?void 0:r.getElementById(e))||null},HO=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(LO(r=i)&&8===r.nodeType||_O(i)&&0===i.childNodes.length||_O(i)&&"false"===i.getAttribute("contenteditable"))&&(!u||!s);)a>=o.length?(u=!0,a=t-1,n="backward"):a<0?(s=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},UO=function(e,t,n){return ax(HO(e,t,n),1)[0]},$O=function e(t){var n,r,o="";if(MO(t)&&t.nodeValue)return t.nodeValue;if(_O(t)){try{for(var i=ix(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var u=getComputedStyle(t).getPropertyValue("display");"block"!==u&&"list"!==u&&"table-row"!==u&&"BR"!==t.tagName||(o+="\n")}return o};function VO(e,t){if(!(e instanceof HTMLElement&&"true"===e.dataset.slateVoid))for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||VO(o,t)}}function GO(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==FO.ELEMENT_NODE?"":t.tagName.toLowerCase()}(PO=FO||(FO={}))[PO.ELEMENT_NODE=1]="ELEMENT_NODE",PO[PO.TEXT_NODE=3]="TEXT_NODE",PO[PO.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",PO[PO.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",PO[PO.COMMENT_NODE=8]="COMMENT_NODE",PO[PO.DOCUMENT_NODE=9]="DOCUMENT_NODE",PO[PO.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",PO[PO.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var WO="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),qO="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent);var KO="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),YO="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),XO="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),ZO="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/.*QQBrowser/.test(navigator.userAgent);var JO=!XO&&!YO&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,QO={getWindow:function(e){var t=AO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=DO.get(t);return n||(n=new lx,DO.set(t,n)),n},setNewKey:function(e){var t=new lx;DO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=bO.get(r);if(null==o){if(Nf.isEditor(r))return n;break}var i=mO.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=QO.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&null!=n.getSelection?n:t.ownerDocument},getParentNode:function(e,t){return bO.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=QO.getParentNode(e,r);if(null==o)break;n.push(o),r=o}return n},getTopNode:function(e,t){var n=[QO.findPath(e,t)[0]];return Rf.get(e,n)},toDOMNode:function(e,t){var n;if(Nf.isEditor(t))n=EO.get(e);else{var r=QO.findKey(e,t);n=SO.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=QO.toDOMNode(e,e);try{r=_O(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&(r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))||!!r.getAttribute("data-slate-string"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=qf.isBackward(t),i=QO.toDOMPoint(e,n),a=qf.isCollapsed(t)?i:QO.toDOMPoint(e,r),u=QO.getWindow(e).document.createRange(),s=ax(o?a:i,2),l=s[0],c=s[1],f=ax(o?i:a,2),d=f[0],p=f[1],h=!!(_O(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),v=!!(_O(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,h?1:c),u.setEnd(d,v?1:p),u},toDOMPoint:function(e,t){var n,r,o,i=ax(Nf.node(e,t.path),1)[0],a=QO.toDOMNode(e,i);Nf.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=ix(u),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),v=s+(null==h?p:parseInt(h,10));if(t.offset<=v){o=[d,Math.min(p,Math.max(0,t.offset-s))];break}s=v}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=_O(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?wO.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=QO.toSlateNode(e,t.target),u=QO.findPath(e,a);if(Nf.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?n-s.left<s.left+s.width-n:r-s.top<s.top+s.height-r,c=Nf.point(e,u,{edge:l?"start":"end"}),f=l?Nf.before(e,c):Nf.after(e,c);if(f)return Nf.range(e,f)}var d=this.getWindow(e).document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return QO.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,n){var r,o,i,a,u,s=n.exactMatch,l=n.suppressThrow;if((jO(t)?t.anchorNode:t.startContainer)&&(jO(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=ZO&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=QO.toSlatePoint(e,[r,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:QO.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var d={anchor:c,focus:f};return qf.isExpanded(d)&&qf.isForward(d)&&_O(i)&&Nf.void(e,{at:d.focus,mode:"highest"})&&(d=Nf.unhangRange(e,d,{voids:!0})),d},toSlatePoint:function(e,t,n){var r,o=n.exactMatch,i=n.suppressThrow,a=ax(o?t:function(e){var t,n=ax(e,2),r=n[0],o=n[1];if(_O(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=ax(HO(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;_O(r)&&r.childNodes.length;){var u=i?r.childNodes.length-1:0;r=UO(r,u,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var d=l.closest('[data-slate-void="true"]'),p=l.closest("[data-slate-leaf]"),h=null;if(p){c=p.closest('[data-slate-node="text"]');var v=QO.getWindow(e).document.createRange();v.setStart(c,0),v.setEnd(u,s);var g=v.cloneContents();ux(ux([],ax(Dp(g.querySelectorAll("[data-slate-zero-width]")))),ax(Dp(g.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),f=g.textContent.length,h=c}else d&&((p=d.querySelector("[data-slate-leaf]"))?(c=p.closest('[data-slate-node="text"]'),f=(h=p).textContent.length,h.querySelectorAll("[data-slate-zero-width]").forEach((function(e){f-=e.textContent.length}))):f=1);h&&f===h.textContent.length&&(l.hasAttribute("data-slate-zero-width")||qO&&(null===(r=h.textContent)||void 0===r?void 0:r.endsWith("\n")))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=QO.toSlateNode(e,c);return{path:QO.findPath(e,y),offset:f}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return Nf.hasPath(e,n.path)&&Nf.hasPath(e,r.path)},getNodeType:function(e){return Cf.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Rf.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=Nf.nodes(e,{universal:!0});try{for(var i=ix(o),a=i.next();!a.done;a=i.next()){var u=ax(a.value,1)[0];Cf.isElement(u)&&r.push(u)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=ax(Nf.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1),o=r[0];return null==o?null:o[0]},getSelectedTextNode:function(e){var t=ax(Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0}),1),n=t[0];return null==n?null:n[0]},isNodeSelected:function(e,t){var n=ax(Nf.nodes(e,{match:function(e){return e===t},universal:!0}),1),r=n[0];return null!=r&&ax(r,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(Nf.isEnd(e,n.anchor,t)||Nf.isEnd(e,n.focus,t))},getTextarea:function(e){var t=iO.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return sO.get(e)||null},getHoverbar:function(e){return cO.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),n=t.maxLength,r=t.onMaxLength;if("number"!=typeof n||n<=0)return 1/0;var o=n-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&r&&r(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r,o,i=QO.getTextarea(e).$textArea,a=null==i?void 0:i[0].childNodes;if(a)try{for(var u=ix(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(3!==l.nodeType)break;l.remove()}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}var c=Nf.nodes(e,{match:function(t){return!(!Cf.isElement(t)||e.isInline(t))},universal:!0});try{for(var f=ix(c),d=f.next();!d.done;d=f.next()){var p=d.value;if(null!=p){var h=p[0];VO(QO.toDOMNode(e,h),(function(e,t){var n=Mp(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||n.attr("data-w-e-reserve")||t.removeChild(e)}))}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}},isLastNode:function(e,t){var n=e.children||[];return n[n.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,n,r=Nf.nodes(e,{match:function(t){return e.isVoid(t)}}),o=0;try{for(var i=ix(r),a=i.next();!a.done;a=i.next())a.value,o++}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(null==t)return!1;if(qf.isExpanded(t))return!1;var n=QO.getSelectedNodeByType(e,"paragraph");if(null===n)return!1;var r=n.children;return 1===r.length&&(""===r[0].text||void 0)},isEmptyPath:function(e,t){var n=Nf.node(e,t);if(null==n)return!1;var r=ax(n,1)[0].children;return 1===r.length&&""===r[0].text}},eT=1,tT={},nT={};var rT=TS.filter,oT=iA("filter");cC({target:"Array",proto:!0,forced:!oT},{filter:function(e){return rT(this,e,arguments.length>1?arguments[1]:void 0)}});var iT="\t\n\v\f\r \u2028\u2029\ufeff",aT=mE("".replace),uT="["+iT+"]",sT=RegExp("^"+uT+uT+"*"),lT=RegExp(uT+uT+"*$"),cT=function(e){return function(t){var n=bC(EE(t));return 1&e&&(n=aT(n,sT,"")),2&e&&(n=aT(n,lT,"")),n}},fT={start:cT(1),end:cT(2),trim:cT(3)},dT=$w.PROPER,pT=fT.trim;cC({target:"String",proto:!0,forced:function(e){return jE((function(){return!!iT[e]()||"
"!=="
"[e]()||dT&&iT[e].name!==e}))}("trim")},{trim:function(){return pT(this)}});var hT=[];var vT={};function gT(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}var yT,mT,bT,ET,wT=lE.Promise,ST=GE("species"),CT=function(e){var t=BE(e),n=bw.f;KE&&t&&!t[ST]&&n(t,ST,{configurable:!0,get:function(){return this}})},DT=lE.TypeError,AT=GE("species"),xT=function(e,t){var n,r=nw(e).constructor;return void 0===r||null==(n=nw(r)[AT])?t:function(e){if(SS(e))return e;throw DT(lw(e)+" is not a constructor")}(n)},OT=mE([].slice),TT=/(?:ipad|iphone|ipod).*applewebkit/i.test(IE),NT="process"==qw(lE.process),kT=lE.setImmediate,BT=lE.clearImmediate,IT=lE.process,FT=lE.Dispatch,PT=lE.Function,RT=lE.MessageChannel,_T=lE.String,LT=0,jT={};try{yT=lE.location}catch(PO){}var MT=function(e){if(DE(jT,e)){var t=jT[e];delete jT[e],t()}},zT=function(e){return function(){MT(e)}},HT=function(e){MT(e.data)},UT=function(e){lE.postMessage(_T(e),yT.protocol+"//"+yT.host)};kT&&BT||(kT=function(e){var t=OT(arguments,1);return jT[++LT]=function(){IA(NE(e)?e:PT(e),void 0,t)},mT(LT),LT},BT=function(e){delete jT[e]},NT?mT=function(e){IT.nextTick(zT(e))}:FT&&FT.now?mT=function(e){FT.now(zT(e))}:RT&&!TT?(ET=(bT=new RT).port2,bT.port1.onmessage=HT,mT=oS(ET.postMessage,ET)):lE.addEventListener&&NE(lE.postMessage)&&!lE.importScripts&&yT&&"file:"!==yT.protocol&&!jE(UT)?(mT=UT,lE.addEventListener("message",HT,!1)):mT="onreadystatechange"in JE("script")?function(e){NC.appendChild(JE("script")).onreadystatechange=function(){NC.removeChild(this),MT(e)}}:function(e){setTimeout(zT(e),0)});var $T,VT,GT,WT,qT,KT,YT,XT,ZT={set:kT,clear:BT},JT=/ipad|iphone|ipod/i.test(IE)&&void 0!==lE.Pebble,QT=/web0s(?!.*chrome)/i.test(IE),eN=zS.f,tN=ZT.set,nN=lE.MutationObserver||lE.WebKitMutationObserver,rN=lE.document,oN=lE.process,iN=lE.Promise,aN=eN(lE,"queueMicrotask"),uN=aN&&aN.value;uN||($T=function(){var e,t;for(NT&&(e=oN.domain)&&e.exit();VT;){t=VT.fn,VT=VT.next;try{t()}catch(e){throw VT?WT():GT=void 0,e}}GT=void 0,e&&e.enter()},TT||NT||QT||!nN||!rN?!JT&&iN&&iN.resolve?((YT=iN.resolve(void 0)).constructor=iN,XT=oS(YT.then,YT),WT=function(){XT($T)}):NT?WT=function(){oN.nextTick($T)}:(tN=oS(tN,lE),WT=function(){tN($T)}):(qT=!0,KT=rN.createTextNode(""),new nN($T).observe(KT,{characterData:!0}),WT=function(){KT.data=qT=!qT}));var sN,lN,cN,fN,dN=uN||function(e){var t={fn:e,next:void 0};GT&&(GT.next=t),VT||(VT=t,WT()),GT=t},pN=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=fw(t),this.reject=fw(n)},hN={f:function(e){return new pN(e)}},vN=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},gN="object"==typeof window,yN=ZT.set,mN=GE("species"),bN="Promise",EN=Mw.getterFor(bN),wN=Mw.set,SN=Mw.getterFor(bN),CN=wT&&wT.prototype,DN=wT,AN=CN,xN=lE.TypeError,ON=lE.document,TN=lE.process,NN=hN.f,kN=NN,BN=!!(ON&&ON.createEvent&&lE.dispatchEvent),IN=NE(lE.PromiseRejectionEvent),FN=!1,PN=sC(bN,(function(){var e=xw(DN),t=e!==String(DN);if(!t&&66===LE)return!0;if(LE>=51&&/native code/.test(e))return!1;var n=new DN((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[mN]=r,!(FN=n.then((function(){}))instanceof r)||!t&&gN&&!IN})),RN=PN||!fD((function(e){DN.all(e).catch((function(){}))})),_N=function(e){var t;return!(!YE(e)||!NE(t=e.then))&&t},LN=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;dN((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&HN(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(xN("Promise-chain cycle")):(u=_N(a))?ow(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&MN(e)}))}},jN=function(e,t,n){var r,o;BN?((r=ON.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),lE.dispatchEvent(r)):r={promise:t,reason:n},!IN&&(o=lE["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=lE.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},MN=function(e){ow(yN,lE,(function(){var t,n=e.facade,r=e.value;if(zN(e)&&(t=vN((function(){NT?TN.emit("unhandledRejection",r,n):jN("unhandledrejection",n,r)})),e.rejection=NT||zN(e)?2:1,t.error))throw t.value}))},zN=function(e){return 1!==e.rejection&&!e.parent},HN=function(e){ow(yN,lE,(function(){var t=e.facade;NT?TN.emit("rejectionHandled",t):jN("rejectionhandled",t,e.value)}))},UN=function(e,t,n){return function(r){e(t,r,n)}},$N=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,LN(e,!0))},VN=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw xN("Promise can't be resolved itself");var r=_N(t);r?dN((function(){var n={done:!1};try{ow(r,t,UN(VN,n,e),UN($N,n,e))}catch(t){$N(n,t,e)}})):(e.value=t,e.state=1,LN(e,!1))}catch(t){$N({done:!1},t,e)}}};if(PN&&(AN=(DN=function(e){kx(this,AN),fw(e),ow(sN,this);var t=EN(this);try{e(UN(VN,t),UN($N,t))}catch(e){$N(t,e)}}).prototype,(sN=function(e){wN(this,{type:bN,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=px(AN,{then:function(e,t){var n=SN(this),r=n.reactions,o=NN(xT(this,DN));return o.ok=!NE(e)||e,o.fail=NE(t)&&t,o.domain=NT?TN.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&LN(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),lN=function(){var e=new sN,t=EN(e);this.promise=e,this.resolve=UN(VN,t),this.reject=UN($N,t)},hN.f=NN=function(e){return e===DN||e===cN?new lN(e):kN(e)},NE(wT)&&CN!==Object.prototype)){fN=CN.then,FN||(Vw(CN,"then",(function(e,t){var n=this;return new DN((function(e,t){ow(fN,n,e,t)})).then(e,t)}),{unsafe:!0}),Vw(CN,"catch",AN.catch,{unsafe:!0}));try{delete CN.constructor}catch(PO){}LD&&LD(CN,AN)}cC({global:!0,wrap:!0,forced:PN},{Promise:DN}),ID(DN,bN,!1),CT(bN),cN=BE(bN),cC({target:bN,stat:!0,forced:PN},{reject:function(e){var t=NN(this);return ow(t.reject,void 0,e),t.promise}}),cC({target:bN,stat:!0,forced:PN},{resolve:function(e){return function(e,t){if(nw(e),YE(t)&&t.constructor===e)return t;var n=hN.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),cC({target:bN,stat:!0,forced:RN},{all:function(e){var t=this,n=NN(t),r=n.resolve,o=n.reject,i=vN((function(){var n=fw(t.resolve),i=[],a=0,u=1;Tx(e,(function(e){var s=a++,l=!1;u++,ow(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=NN(t),r=n.reject,o=vN((function(){var o=fw(t.resolve);Tx(e,(function(e){ow(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var GN=fA.UNSUPPORTED_Y,WN=Math.min,qN=[].push,KN=mE(/./.exec),YN=mE(qN),XN=mE("".slice);function ZN(e){Promise.resolve().then(e)}function JN(e,t){return Cf.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=Nf.isVoid(t,e),u="";a||(u=i.map((function(e){return JN(e,t)})).join(""));var s=function(e){return vT[e]||gT}(r),l=s(e,u,t),c="";if(c="string"==typeof l?l:l.html||"",a||hT.forEach((function(t){return c=t(e,c)})),"string"==typeof l)return c;var f=l.prefix,d=void 0===f?"":f,p=l.suffix,h=void 0===p?"":p;return d&&(c=d+c),h&&(c+=h),c}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;r=function(e){return e.replace(/ {2}/g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™")}(r);var o=QO.getParentsNodes(t,e).some((function(e){return"pre"===QO.getNodeType(e)}));if(o||(r=r.replace(/\r\n|\r|\n/g,"<br>")),o&&(r=r.replace(/ /g," ")),""===r){var i=QO.getParentNode(null,e);if(!i||0!==i.children.length)return r;r="<br>"}return hT.forEach((function(t){return r=t(e,r)})),r}(e,t)}function QN(e){return"w-e-element-"+e}RA("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=bC(EE(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!HC(e))return ow(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=ow(OA,f,r))&&!((a=f.lastIndex)>c&&(YN(s,XN(r,c,i.index)),i.length>1&&i.index<r.length&&IA(qN,s,gx(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&KN(f,"")||YN(s,""):YN(s,XN(r,c)),s.length>o?gx(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:ow(t,this,e,n)}:t,[function(t,n){var o=EE(this),i=null==t?void 0:dw(t,e);return i?ow(i,t,o,n):ow(r,bC(o),t,n)},function(e,o){var i=nw(this),a=bC(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=xT(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(GN?"g":"y"),f=new s(GN?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===WA(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=GN?0:h;var g,y=WA(f,GN?XN(a,h):a);if(null===y||(g=WN(dS(f.lastIndex+(GN?h:0)),a.length))===p)h=LA(a,h,l);else{if(YN(v,XN(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(YN(v,y[m]),v.length===d)return v;h=p=g}}return YN(v,XN(a,p)),v}]}),!!jE((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),GN);var ek=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},tk=function(e,t,n){var r=QO.toDOMRange(e,t).getBoundingClientRect(),o=QO.toDOMRange(e,n).getBoundingClientRect();return ek(r,o)&&ek(o,r)},nk=["span","b","strong","i","em","s","strike","u","font","sub","sup"],rk=[];var ok=[];var ik={};var ak=bw.f,uk=ZS.f,sk=Mw.enforce,lk=GE("match"),ck=lE.RegExp,fk=ck.prototype,dk=lE.SyntaxError,pk=mE(EC),hk=mE(fk.exec),vk=mE("".charAt),gk=mE("".replace),yk=mE("".indexOf),mk=mE("".slice),bk=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ek=/a/g,wk=/a/g,Sk=new ck(Ek)!==Ek,Ck=fA.MISSED_STICKY,Dk=fA.UNSUPPORTED_Y,Ak=KE&&(!Sk||Ck||pA||vA||jE((function(){return wk[lk]=!1,ck(Ek)!=Ek||ck(wk)==wk||"/a/i"!=ck(Ek,"i")})));if(sC("RegExp",Ak)){for(var xk=function(e,t){var n,r,o,i,a,u,s=iw(fk,this),l=HC(e),c=void 0===t,f=[],d=e;if(!s&&l&&c&&e.constructor===xk)return e;if((l||iw(fk,e))&&(e=e.source,c&&(t="flags"in d?d.flags:pk(d))),e=void 0===e?"":bC(e),t=void 0===t?"":bC(t),d=e,pA&&"dotAll"in Ek&&(r=!!t&&yk(t,"s")>-1)&&(t=gk(t,/s/g,"")),n=t,Ck&&"sticky"in Ek&&(o=!!t&&yk(t,"y")>-1)&&Dk&&(t=gk(t,/y/g,"")),vA&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},u=!1,s=!1,l=0,c="";r<=n;r++){if("\\"===(t=vk(e,r)))t+=vk(e,++r);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:hk(bk,mk(e,r+1))&&(r+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===c||DE(a,c))throw new dk("Invalid capture group name");a[c]=!0,i[i.length]=[c,l],s=!1,c="";continue}s?c+=t:o+=t}return[o,i]}(e),e=i[0],f=i[1]),a=Bx(ck(e,t),s?this:fk,xk),(r||o||f.length)&&(u=sk(a),r&&(u.dotAll=!0,u.raw=xk(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=vk(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+vk(e,++r);return o}(e),n)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==d)try{ww(a,"source",""===d?"(?:)":d)}catch(e){}return a},Ok=function(e){e in xk||ak(xk,e,{configurable:!0,get:function(){return ck[e]},set:function(t){ck[e]=t}})},Tk=uk(ck),Nk=0;Tk.length>Nk;)Ok(Tk[Nk++]);fk.constructor=xk,xk.prototype=fk,Vw(lE,"RegExp",xk)}CT("RegExp");var kk=new RegExp(String.fromCharCode(160),"g");function Bk(e){return e.replace(kk," ")}function Ik(e,t){var n=e.length;if(n){var r=e[n-1];if(ed.isText(r)){var o=Object.keys(r);if(1===o.length&&"text"===o[0])return r.text=r.text+t,!0}}return!1}function Fk(e,t,n){return{type:"paragraph",children:[{text:Mp(e).text().replace(/\s+/gm," ")}]}}function Pk(e,t){var n=function(e,t){var n=[];if(null!=e.attr("data-w-e-is-void"))return n;var r=e[0].childNodes;return 1===r.length&&"BR"===r[0].nodeName?(n.push({text:""}),n):(r.forEach((function(e){if(e.nodeType!==FO.ELEMENT_NODE)if(e.nodeType!==FO.TEXT_NODE);else{var r=e.textContent||"";if(""===r.trim()&&r.indexOf("\n")>=0)return;r&&(r=Bk(r),Ik(n,r)||n.push({text:r}))}else{if("BR"===e.nodeName)return void(Ik(n,"\n")||n.push({text:"\n"}));var o=_k(Mp(e),t);Array.isArray(o)?o.forEach((function(e){return n.push(e)})):n.push(o)}})),n)}(e,t),r=function(e){for(var t in ik)if(e[0].matches(t))return ik[t];return Fk}(e),o=r(e[0],n,t);return Array.isArray(o)||(o=[o]),o.forEach((function(r){Nf.isVoid(t,r)||(0===n.length&&(r.children=[{text:e.text().replace(/\s+/gm," ")}]),ok.forEach((function(n){r=n(e[0],r,t)})))})),o}function Rk(e,t){0===e.parents("pre").length&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,"\n"));var n=e[0].textContent||"";n=function(e){return e.replace(/ /g," ").replace(/</g,"<").replace(/>/g,">").replace(/®/g,"®").replace(/©/g,"©").replace(/™/g,"™").replace(/"/g,'"')}(n);var r={text:n=Bk(n)};return ok.forEach((function(n){r=n(e[0],r,t)})),r}function _k(e,t){rk.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=Mp(r(e[0])))}));var n=GO(e);if("span"===n){if(e.attr("data-w-e-type"))return Pk(e,t);if(e[0].childNodes.length>1){var r=e[0].childNodes;return Array.from(r).map((function(n){return Mp(e[0]).empty(),Mp(e[0]).append(Mp(n)),Rk(Mp(e[0]),t)}))}return Rk(e,t)}return"code"===n?"pre"===GO(e.parent())?Pk(e,t):Rk(e,t):nk.includes(n)?Rk(e,t):Pk(e,t)}function Lk(e,t,n){var r=Mp(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function jk(e,t){void 0===t&&(t="");var n=[];""===t&&(t="<p><br></p>"),0!==t.indexOf("<")&&(t=t.split(/\n/).map((function(e){return"<p>"+e+"</p>"})).join(""));var r=Mp("<div>"+t+"</div>");return Array.from(r.children()).forEach((function(t){var r=_k(Mp(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Mk=bw.f,zk=Dx.fastKey,Hk=Mw.set,Uk=Mw.getterFor,$k={getConstructor:function(e,t,n,r){var o=e((function(e,o){kx(e,i),Hk(e,{type:t,index:RC(null),first:void 0,last:void 0,size:0}),KE||(e.size=0),null!=o&&Tx(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=Uk(t),u=function(e,t,n){var r,o,i=a(e),u=s(e,t);return u?u.value=n:(i.last=u={index:o=zk(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=u),r&&(r.next=u),KE?i.size++:e.size++,"F"!==o&&(i.index[o]=u)),e},s=function(e,t){var n,r=a(e),o=zk(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return px(i,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,KE?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=s(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),KE?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=oS(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),px(i,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return u(this,0===e?0:e,t)}}:{add:function(e){return u(this,e=0===e?0:e,e)}}),KE&&Mk(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=Uk(t),i=Uk(r);VD(e,t,(function(e,t){Hk(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),CT(t)}};Ix("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),$k);var Vk=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function Gk(e,t){e.isInline(t)?(e.insertNode(t),"link"===t.type&&e.insertFragment([{text:""}])):md.insertNodes(e,t,{mode:"highest"})}var Wk=function(e){var t=e;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=ax(qf.edges(n),2),o=r[0],i=r[1],a=Nf.void(t,{at:o.path}),u=Nf.void(t,{at:i.path});if(!qf.isCollapsed(n)||a){var s=QO.toDOMRange(t,n),l=s.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),u){var f=ax(u,1)[0],d=s.cloneRange(),p=QO.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),MO(c)){var h=c.ownerDocument.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var v=t.getFragment(),g=JSON.stringify(v),y=window.btoa(encodeURIComponent(g));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=l.ownerDocument.createElement("div");return m.appendChild(l),m.setAttribute("hidden","true"),l.ownerDocument.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",$O(m)),l.ownerDocument.body.removeChild(m),e}}},t.insertData=function(e){var n,r,o=e.getData("application/x-slate-fragment");if(o){var i=decodeURIComponent(window.atob(o)),a=JSON.parse(i);t.insertFragment(a)}else{var u=e.getData("text/plain"),s=e.getData("text/html");if(s)t.dangerouslyInsertHtml(s);else{var l=QO.getLeftLengthOfMaxLength(t);if(u){var c=u.split(/\r\n|\r|\n/),f=!1;try{for(var d=ix(c),p=d.next();!p.done;p=d.next()){var h=p.value;f&&l>0&&md.splitNodes(t,{always:!0}),t.insertText(h),f=!0}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}}}}},t},qk=function(e){return null!=e},Kk={object:!0,function:!0,undefined:!0},Yk=/^\s*class[\s{/}]/,Xk=Function.prototype.toString,Zk=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!qk(e)&&hasOwnProperty.call(Kk,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!Yk.test(Xk.call(e))},Jk=function(e){return null!=e},Qk=Object.keys,eB=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return Qk(Jk(e)?Object(e):e)},tB=function(e){if(!Jk(e))throw new TypeError("Cannot use null or undefined");return e},nB=Math.max,rB=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=nB(arguments.length,2);for(e=Object(tB(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)eB(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},oB=Array.prototype.forEach,iB=Object.create,aB=function(e,t){var n;for(n in e)t[n]=e[n]},uB=function(e){var t=iB(null);return oB.call(arguments,(function(e){Jk(e)&&aB(Object(e),t)})),t},sB="razdwatrzy",lB=String.prototype.indexOf,cB="function"==typeof sB.contains&&!0===sB.contains("dwa")&&!1===sB.contains("foo")?String.prototype.contains:function(e){return lB.call(this,e,arguments[1])>-1},fB=iE((function(e){var t=e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],qk(e)?(n=cB.call(e,"c"),r=cB.call(e,"e"),o=cB.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?rB(uB(i),a):a};t.gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],qk(t)?Zk(t)?qk(n)?Zk(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,qk(e)?(r=cB.call(e,"c"),o=cB.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?rB(uB(i),a):a}})),dB=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},pB=iE((function(e,t){var n,r,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};n=function(e,t){var n;return dB(t),h.call(this,"__ee__")?n=this.__ee__:(n=v.value=f(null),d(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},r=function(e,t){var r,i;return dB(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},o=function(e,t){var n,r,o,i;if(dB(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}},a={on:n,once:r,off:o,emit:i},u={on:fB(n),once:fB(r),off:fB(o),emit:fB(i)},s=p({},u),e.exports=t=function(e){return null==e?f(s):p(Object(e),u)},t.methods=a}));function hB(e){var t=TO.get(e);return null==t&&(t=pB(),TO.set(e,t)),t}var vB=new WeakMap;function gB(e,t){var n=vB.get(e);null==n&&(n=new Set,vB.set(e,n)),n.add(t)}function yB(e){return vB.get(e)||new Set}function mB(e){vB.set(e,new Set)}function bB(e){var t=QO.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function EB(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=bB(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,u=r.height,s=QO.toDOMRange(e,n).getClientRects()[0];if(null==s)return t;s.width;var l=s.height,c={},f=s.top-o,d=s.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>u/2){var h=u-f;c.bottom=h+5+"px"}else{var v=f+l;v<0&&(v=0),c.top=v+5+"px"}return c}function wB(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Cf.isElement(t)&&e.isVoid(t),i=Cf.isElement(t)&&e.isInline(t),a=CO.get(t);if(null==a)return r;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var d=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(IO.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],u=a.length;if(u)for(var s=u-1;s>=0;s--)t.push(a[s])}}return null}(a);if(null!=d){var p=d.getBoundingClientRect();s=p.top,c=p.height}}var h=bB(e);if(null==h)return r;var v,g=h.top,y=h.left,m=h.width,b=h.height,E={},w=s-g,S=l-y;if("bar"===n)return E.left=S+"px",w>40?E.bottom=b-w+5+"px":E.top=w+c+5+"px",E;if("modal"===n)return o?i?S>(m-f)/2?E.right=m-S+5+"px":E.left=S+f+5+"px":E.left="20px":E.left=S+"px",o?((v=w)<0&&(v=0),E.top=v+"px"):w>(b-c)/2?E.bottom=b-w+5+"px":((v=w+c)<0&&(v=0),E.top=v+5+"px"),E;throw new Error("type '"+n+"' is invalid")}function SB(e,t){ZN((function(){var n=bB(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,u=n.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),d=t.height(),p=l-o,h=c-i,v=t.attr("style");if(v.indexOf("top")>=0&&(r=p+d-u)>0){var g=t.css("top"),y=parseInt(g.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(v.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(v.indexOf("left")>=0&&(r=h+f-a)>0){var E=t.css("left"),w=parseInt(E.toString())-r;w<0&&(w=0),t.css("left",w+"px")}if(v.indexOf("right")>=0&&c<0){var S=t.css("right"),C=parseInt(S.toString())-Math.abs(c);t.css("right",C+"px")}}}))}var CB=iA("slice"),DB=GE("species"),AB=lE.Array,xB=Math.max;cC({target:"Array",proto:!0,forced:!CB},{slice:function(e,t){var n,r,o,i=jS(this),a=pS(i),u=$S(e,a),s=$S(void 0===t?a:t,a);if(hS(i)&&(n=i.constructor,(SS(n)&&(n===AB||hS(n.prototype))||YE(n)&&null===(n=n[DB]))&&(n=void 0),n===AB||void 0===n))return OT(i,u,s);for(r=new(void 0===n?AB:n)(xB(s-u,0)),o=0;u<s;u++,o++)u in i&&tD(r,o,i[u]);return r.length=o,r}});var OB=zS.f,TB=mE("".startsWith),NB=mE("".slice),kB=Math.min,BB=GC("startsWith"),IB=!BB&&!!function(){var e=OB(String.prototype,"startsWith");return e&&!e.writable}();cC({target:"String",proto:!0,forced:!IB&&!BB},{startsWith:function(e){var t=bC(EE(this));$C(e);var n=dS(kB(arguments.length>1?arguments[1]:void 0,t.length)),r=bC(e);return TB?TB(t,r,n):NB(t,n,n+r.length)===r}});var FB=Object.assign,PB=Object.defineProperty,RB=mE([].concat),_B=!FB||jE((function(){if(KE&&1!==FB({b:1},FB(PB({},"a",{enumerable:!0,get:function(){PB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=FB({},e)[n]||fC(FB({},t)).join("")!=r}))?function(e,t){for(var n=SE(e),r=arguments.length,o=1,i=JS.f,a=LS.f;r>o;)for(var u,s=uS(arguments[o++]),l=i?RB(fC(s),i(s)):fC(s),c=l.length,f=0;c>f;)u=l[f++],KE&&!ow(a,s,u)||(n[u]=s[u]);return n}:FB;cC({target:"Object",stat:!0,forced:Object.assign!==_B},{assign:_B});var LB=["props","attrs","style","dataset","on","hook"];function jB(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!LB.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=Ag(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&jB(e)}))}var MB=[];var zB={};function HB(e,t,n){return Fv(n.isInline(e)?"span":"div",null,t)}function UB(e,t){return void 0===t&&(t=!1),Fv("span",{"data-slate-string":!0},t?e+"\n":e)}function $B(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),Fv("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?Fv("br",null):null)}function VB(e,t,n,r){return mO.set(e,t),bO.set(e,n),Cf.isElement(e)?function(e,t){var n,r=QO.findKey(t,e),o=t.isInline(e),i=Nf.isVoid(t,e),a=QN(r.id),u={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},s=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return zB[e]||HB}(s);n=i?null:c.map((function(n,r){return VB(n,r,e,t)}));var d=f(e,n,t);if(i){u["data-slate-void"]=!0;var p=o?"span":"div",h=ax(Rf.texts(e),1),v=ax(h[0],1)[0],g=Fv(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},VB(v,0,e,t));d=Fv(p,{style:{position:"relative"}},d,g),mO.set(v,0),bO.set(v,e)}return null==d.data&&(d.data={}),Object.assign(d.data,u),i||o||(d=function(e,t){var n=t;return MB.forEach((function(r){n=r(e,t)})),n}(e,d)),ZN((function(){var t=zO(a);null!=t&&(SO.set(r,t),CO.set(e,t),wO.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=QO.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=QO.findPath(n,e),a=o([e,i]),u=ed.decorations(e,a),s=u.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=QO.findPath(o,n),u=Mf.parent(a);if(Nf.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?$B(Rf.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==Nf.string(o,u)?""===i?$B():t&&"\n"===i.slice(-1)?UB(i,!0):UB(i):$B(0,!0)}(r,o===u.length-1,e,t,n);return i=function(e,t){var n=t;return MB.forEach((function(t){n=t(e,n)})),n}(r,i),Fv("span",{"data-slate-leaf":!0},i)})),l=function(e){return"w-e-text-"+e}(r.id),c=Fv("span",{"data-slate-node":"text",id:l,key:r.id},s);return ZN((function(){var t=zO(l);null!=t&&(SO.set(r,t),CO.set(e,t),wO.set(t,e))})),c}(e,n,r)}function GB(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=function(e,t){return void 0===t&&(t=!1),pv("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];s.children=l.map((function(e,n){var r=VB(e,n,t,t);return jB(r),r}));var c=vO.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Mp('<div\n id="'+e+'"\n data-slate-editor\n data-slate-node="value"\n suppressContentEditableWarning\n role="textarea"\n spellCheck="true"\n autoCorrect="true"\n autoCapitalize="true"\n ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=fv([yv,xv,Bv,Ev,Dv,vv]))(n,s),vO.set(e,!1),gO.set(e,p)}else{var d=yO.get(e),p=gO.get(e);if(null==d||null==p)return;n=d.elm,p(d,s)}if(null!=n||null!=(n=zO(o))){if((c?u:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=RO(n);h&&AO.set(t,h)}EO.set(t,n),CO.set(t,n),wO.set(n,t),yO.set(e,s)}}function WB(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function qB(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function KB(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return qB(n.overflowY,t)||qB(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function YB(e,t,n,r,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=n||a>=t&&u>=n?i-e-r:a>t&&u<n||i<e&&u>n?a-t+o:0}function XB(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!WB(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;WB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&KB(f)&&!KB(document.documentElement)||null!=f&&KB(f,u)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,m=g.width,b=g.top,E=g.right,w=g.bottom,S=g.left,C="start"===o||"nearest"===o?b:"end"===o?w:b+y/2,D="center"===i?S+m/2:"end"===i?E:S,A=[],x=0;x<c.length;x++){var O=c[x],T=O.getBoundingClientRect(),N=T.height,k=T.width,B=T.top,I=T.right,F=T.bottom,P=T.left;if("if-needed"===r&&b>=0&&S>=0&&w<=p&&E<=d&&b>=B&&w<=F&&S>=P&&E<=I)return A;var R=getComputedStyle(O),_=parseInt(R.borderLeftWidth,10),L=parseInt(R.borderTopWidth,10),j=parseInt(R.borderRightWidth,10),M=parseInt(R.borderBottomWidth,10),z=0,H=0,U="offsetWidth"in O?O.offsetWidth-O.clientWidth-_-j:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-L-M:0;if(l===O)z="start"===o?C:"end"===o?C-p:"nearest"===o?YB(v,v+p,p,L,M,v+C,v+C+y,y):C-p/2,H="start"===i?D:"center"===i?D-d/2:"end"===i?D-d:YB(h,h+d,d,_,j,h+D,h+D+m,m),z=Math.max(0,z+v),H=Math.max(0,H+h);else{z="start"===o?C-B-L:"end"===o?C-F+M+$:"nearest"===o?YB(B,F,N,L,M+$,C,C+y,y):C-(B+N/2)+$/2,H="start"===i?D-P-_:"center"===i?D-(P+k/2)+U/2:"end"===i?D-I+j+U:YB(P,I,k,_,j+U,D,D+m,m);var V=O.scrollLeft,G=O.scrollTop;C+=G-(z=Math.max(0,Math.min(G+z,O.scrollHeight-N+$))),D+=V-(H=Math.max(0,Math.min(V+H,O.scrollWidth-k+U)))}A.push({el:O,top:z,left:H})}return A}function ZB(e){return e===Object(e)&&0!==Object.keys(e).length}function JB(e,t){return LO(t)&&QO.hasDOMNode(e,t,{editable:!0})}function QB(e,t){if(e.getConfig().readOnly)return!1;var n=eI(e,t)&&QO.toSlateNode(e,t);return Nf.isVoid(e,n)}function eI(e,t){return LO(t)&&QO.hasDOMNode(e,t)}function tI(e,t,n){void 0===n&&(n=!1);var r=t.selection,o=t.getConfig(),i=QO.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||n)&&t.isFocused()){var a="None"!==i.type;if(r||a){var u=EO.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&r){var l=QO.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&qf.equals(l,r)){var c=!0;if(qf.isCollapsed(r)){var f=i.anchorNode,d=i.anchorOffset;if(f===u){var p=u.childNodes,h=void 0;(h=p[d])&&h.matches("table")&&(c=!1),(h=p[d-1])&&h.matches("table")&&(c=!1)}}if(c)return}}if(!r||QO.hasRange(t,r)){e.isUpdatingSelection=!0;var v=r&&QO.toDOMRange(t,r);if(v){qf.isBackward(r)?i.setBaseAndExtent(v.endContainer,v.endOffset,v.startContainer,v.startOffset):i.setBaseAndExtent(v.startContainer,v.startOffset,v.endContainer,v.endOffset);var g=v.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=v.getBoundingClientRect.bind(v);var y=document.body;(function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(ZB(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:XB(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:ZB(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(XB(e,r),r.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout((function(){v&&qO&&u.focus(),e.isUpdatingSelection=!1}))}else t.selection=QO.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var nI=new WeakMap,rI=new WeakMap,oI={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},iI={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},aI={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},uI=function(e){var t=oI[e],n=iI[e],r=aI[e],o=t&&Rg(t),i=n&&Rg(n),a=r&&Rg(r);return function(e){return!(!o||!o(e))||!!(WO&&i&&i(e))||!(WO||!a||!a(e))}},sI={isBold:uI("bold"),isCompose:uI("compose"),isMoveBackward:uI("moveBackward"),isMoveForward:uI("moveForward"),isDeleteBackward:uI("deleteBackward"),isDeleteForward:uI("deleteForward"),isDeleteLineBackward:uI("deleteLineBackward"),isDeleteLineForward:uI("deleteLineForward"),isDeleteWordBackward:uI("deleteWordBackward"),isDeleteWordForward:uI("deleteWordForward"),isExtendBackward:uI("extendBackward"),isExtendForward:uI("extendForward"),isExtendLineBackward:uI("extendLineBackward"),isExtendLineForward:uI("extendLineForward"),isItalic:uI("italic"),isMoveLineBackward:uI("moveLineBackward"),isMoveLineForward:uI("moveLineForward"),isMoveWordBackward:uI("moveWordBackward"),isMoveWordForward:uI("moveWordForward"),isRedo:uI("redo"),isSplitBlock:uI("splitBlock"),isTransposeCharacter:uI("transposeCharacter"),isUndo:uI("undo"),isTab:uI("tab"),isSelectAll:uI("selectAll")};function lI(e){e.preventDefault()}var cI={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(JO&&!o&&JB(n,r.target)){var i=n.selection,a=r.inputType,u=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=ax(r.getTargetRanges(),1)[0];if(s){var l=QO.toSlateRange(n,s,{exactMatch:!1,suppressThrow:!1});i&&qf.equals(i,l)||md.select(n,l)}}if(i&&qf.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";Nf.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":Nf.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":Nf.deleteForward(n);break;case"deleteContentBackward":Nf.deleteBackward(n);break;case"deleteEntireSoftLine":Nf.deleteBackward(n,{unit:"line"}),Nf.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":Nf.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":Nf.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":Nf.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":Nf.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":Nf.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":Nf.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":Nf.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!NO.get(n))break;u instanceof DataTransfer?n.insertData(u):"string"==typeof u&&Nf.insertText(n,u)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&JB(n,r.target)){var a=QO.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var u=r.relatedTarget;if(!(u===QO.toDOMNode(n,n)||_O(u)&&u.hasAttribute("data-slate-spacer"))){if(null!=u&&LO(u)&&QO.hasDOMNode(n,u)){var s=QO.toSlateNode(n,u);if(Cf.isElement(s)&&!n.isVoid(s))return}if(KO){var l=a.getSelection();null==l||l.removeAllRanges()}xO.delete(n)}}}},focus:function(e,t,n){var r=QO.toDOMNode(n,n),o=QO.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,qO&&e.target!==r?r.focus():xO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&eI(n,e.target)&&LO(e.target)){var r=QO.toSlateNode(n,e.target),o=QO.findPath(n,r);if(Nf.hasPath(n,o)&&Rf.get(n,o)===r){var i=Nf.start(n,o),a=Nf.end(n,o),u=Nf.void(n,{at:i}),s=Nf.void(n,{at:a});if(u&&s&&Mf.equals(u[1],s[1])){var l=Nf.range(n,i);md.select(n,l)}}}},compositionstart:function(e,t,n){if(JB(n,e.target)){var r=n.selection;if(r&&qf.isExpanded(r)&&(Nf.deleteFragment(n),Promise.resolve().then((function(){tI(t,n,!0)}))),r&&(qf.isExpanded(r)||qf.isCollapsed(r))){var o=QO.toDOMRange(n,r).startContainer,i=o.textContent||"";nI.set(n,i),rI.set(n,o)}t.isComposing=!0,function(e,t){var n;t.getConfig().placeholder&&t.isEmpty()&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}(t,n)}},compositionend:function(e,t,n){var r=e;if(JB(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){(ZO||qO)&&QO.cleanExposedTexNodeInSelectionBlock(n);for(var i=qf.isBackward(o)?o.focus:o.anchor,a=ax(Nf.node(n,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=ax(Nf.node(n,i.path.slice(0,u+1)),1)[0];if(Cf.isElement(s)&&((KO||qO)&&"link"===s.type||"code"===s.type)){QO.setNewKey(a);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var c=QO.getLeftLengthOfMaxLength(n);c<l.length?(QO.toDOMRange(n,o).startContainer.textContent=nI.get(n)||"",c>0&&Nf.insertText(n,l.slice(0,c)),t.changeViewState()):Nf.insertText(n,l)}else{var f=QO.findDocumentOrShadowRoot(n).getSelection();f&&function(e,t){if(qf.isCollapsed(t)){var n=t.anchor,r=t.focus;if(2===n.path.length&&2===r.path.length&&(0===n.offset||0===r.path.offset)){var o=Nf.node(e,n.path),i=0===n.offset?n.path:r.path,a=[i[0],i[1]-1];if(0===i[1])return!1;var u=Nf.node(e,a);if(ed.isText(u[0])&&ed.isText(o[0]))return!0}}}(n,o)&&(n.selection=QO.toSlateRange(n,f,{exactMatch:!1,suppressThrow:!1})),Nf.insertText(n,l)}KO||setTimeout((function(){var e=n.selection;if(null!=e){var t=rI.get(n);null!=t&&QO.toDOMRange(n,e).startContainer!==t&&(t.textContent=nI.get(n)||"")}}))}}}},compositionupdate:function(e,t,n){JB(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&JB(n,r.target)){if(function(e,t){var n=sO.get(e),r=n&&n.getMenus(),o=cO.get(e),i=o&&o.getMenus(),a=ox(ox({},r),i);for(var u in a){var s=a[u],l=s.hotkey;if(l&&Pg(l,t)&&!s.isDisabled(e)){var c=s.getValue(e);s.exec(e,c)}}}(n,r),sI.isTab(r))return lI(r),void n.handleTab();if(sI.isRedo(r))return lI(r),void("function"==typeof n.redo&&n.redo());if(sI.isUndo(r))return lI(r),void("function"==typeof n.undo&&n.undo());if(sI.isMoveLineBackward(r))return lI(r),void md.move(n,{unit:"line",reverse:!0});if(sI.isMoveLineForward(r))return lI(r),void md.move(n,{unit:"line"});if(sI.isExtendLineBackward(r))return lI(r),void md.move(n,{unit:"line",edge:"focus",reverse:!0});if(sI.isExtendLineForward(r))return lI(r),void md.move(n,{unit:"line",edge:"focus"});if(sI.isMoveBackward(r))return lI(r),void(o&&qf.isCollapsed(o)?md.move(n,{reverse:!0}):md.collapse(n,{edge:"start"}));if(sI.isMoveForward(r))return lI(r),void(o&&qf.isCollapsed(o)?md.move(n):md.collapse(n,{edge:"end"}));if(sI.isMoveWordBackward(r))return lI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word",reverse:!0});if(sI.isMoveWordForward(r))return lI(r),o&&qf.isExpanded(o)&&md.collapse(n,{edge:"focus"}),void md.move(n,{unit:"word"});if(sI.isSelectAll(r))return lI(r),void n.selectAll();if(JO){if((ZO||KO)&&o&&(sI.isDeleteBackward(r)||sI.isDeleteForward(r))&&qf.isCollapsed(o)){var i=Rf.parent(n,o.anchor.path);if(Cf.isElement(i)&&Nf.isVoid(n,i)&&Nf.isInline(n,i))return r.preventDefault(),void md.delete(n,{unit:"block"})}}else{if(sI.isBold(r)||sI.isItalic(r)||sI.isTransposeCharacter(r))return void lI(r);if(sI.isSplitBlock(r))return lI(r),void Nf.insertBreak(n);if(sI.isDeleteBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n));if(sI.isDeleteForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n));if(sI.isDeleteLineBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"line"}));if(sI.isDeleteLineForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"line"}));if(sI.isDeleteWordBackward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"backward"}):Nf.deleteBackward(n,{unit:"word"}));if(sI.isDeleteWordForward(r))return lI(r),void(o&&qf.isExpanded(o)?Nf.deleteFragment(n,{direction:"forward"}):Nf.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!JO&&!n.getConfig().readOnly&&JB(n,e.target)){e.preventDefault();var r=e.key;Nf.insertText(n,r)}},copy:function(e,t,n){var r=e;if(JB(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&JB(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(qf.isExpanded(o))Nf.deleteFragment(n);else{var a=Rf.parent(n,o.anchor.path);Nf.isVoid(n,a)&&md.delete(n)}}},paste:function(e,t,n){NO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&JB(n,r.target)){var o=n.getConfig().customPaste;if(o&&!1===o(n,r))return void NO.set(n,!1);if(!JO||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(eI(n,e.target)){var r=QO.toSlateNode(n,e.target);Nf.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(eI(n,r.target)&&!n.getConfig().readOnly){var o=QO.toSlateNode(n,r.target),i=QO.findPath(n,o);if(Nf.isVoid(n,o)||Nf.void(n,{at:i,voids:!0})){var a=Nf.range(n,i);md.select(n,a)}var u=r.dataTransfer;null!=u&&(t.isDraggingInternally=!0,n.setFragmentData(u))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&eI(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&eI(n,r.target)&&null!=o&&!(JO&&KO&&o.files.length>0)){r.preventDefault();var i=n.selection,a=QO.findEventRange(n,r);md.select(n,a),t.isDraggingInternally&&(i&&md.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},fI=1,dI=function(){function e(e){var t=this;this.id=fI++,this.$textArea=null,this.$progressBar=Mp('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=Mp('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=ev((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=QO.findDocumentOrShadowRoot(t),a=i.activeElement,u=QO.toDOMNode(t,t),s=i.getSelection();if(a===u?(e.latestElement=a,xO.set(t,!0)):xO.delete(t),!s)return md.deselect(t);var l=s.anchorNode,c=s.focusNode,f=JB(t,l)||QB(t,l),d=JB(t,c)||QB(t,c);if(f&&d){var p=QO.toSlateRange(t,s,{exactMatch:!1,suppressThrow:!1});md.select(t,p)}}}(t,e)}),100);var n=Mp(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Mp('<div class="w-e-text-container"></div>');r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var o=Mp('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,ZN((function(){var e=t.editorInstance,n=QO.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("click",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),e.on("change",t.changeMaxLengthInfo.bind(t)),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=aO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Lh(cI,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",ev((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?setTimeout((function(){return o&&o(t)})):null!=e.latestEditorSelection&&null==t.selection&&setTimeout((function(){return r&&r(t)})),e.latestEditorSelection=t.selection}))},e.prototype.changeMaxLengthInfo=function(){var e=this.editorInstance,t=e.getConfig().maxLength;if(t){var n=t-QO.getLeftLengthOfMaxLength(e);this.$maxLengthInfo[0].innerHTML=n+"/"+t}},e.prototype.changeProgress=function(e){var t=this.$progressBar;t.css("width",e+"%"),e>=100&&setTimeout((function(){t.hide(),t.css("width","0"),t.show()}),1e3)},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;GB(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder&&!e.isComposing){if(null==e.$placeholder){var i=Mp('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),ZN((function(){tI(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function pI(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&pI(t)}function hI(){return Mp('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function vI(){return Mp('<div class="w-e-bar-divider"></div>')}function gI(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=WO?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}RA("match",(function(e,t,n){return[function(t){var n=EE(this),r=null==t?void 0:dw(t,e);return r?ow(r,t,n):new RegExp(t)[e](bC(n))},function(e){var r=nw(this),o=bC(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return WA(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=WA(r,o));){var c=bC(u[0]);s[l]=c,""===c&&(r.lastIndex=LA(o,dS(r.lastIndex),a)),l++}return 0===l?null:s}]}));var yI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button"></button>'),this.disabled=!1,this.menu=t;var o=t.tag,i=t.width;if("button"!==o)throw new Error("Invalid tag '"+o+"', expected 'button'");var a=t.title,u=t.hotkey,s=void 0===u?"":u,l=t.iconSvg,c=void 0===l?"":l,f=this.$button;if(c){var d=Mp(c);pI(d),f.append(d)}else f.text(a);gI(f,c,a,s,n),n&&c&&f.append(Mp('<span class="title">'+a+"</span>")),i&&f.css("width",i+"px"),f.attr("data-menu-key",e),this.$elem.append(f),ZN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("click",(function(t){t.preventDefault(),BI(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=BI(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=BI(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=BI(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),mI=function(e){function t(t,n,r){return void 0===r&&(r=!1),e.call(this,t,n,r)||this}return rx(t,e),t.prototype.onButtonClick=function(){},t}(yI),bI=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=dO.get(e);null==t&&(t=new Set,dO.set(e,t)),t.add(this),pO.set(this,e)},e.prototype.renderContent=function(e){var t=this.$elem;t.empty(),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var e=pO.get(this);e&&e.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var e=pO.get(this);e&&e.emit("modalOrPanelHide")}},e}(),EI=function(e){function t(t){var n=e.call(this,t)||this;return n.type="dropPanel",n.$elem=Mp('<div class="w-e-drop-panel"></div>'),n}return rx(t,e),t.prototype.genSelfElem=function(){return null},t}(bI),wI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;if(o.dropPanel=null,o.menu=n,n.showDropPanel){var i=hI();o.$button.append(i)}return o}return rx(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=BI(this);if(null==this.dropPanel){var n=new EI(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,u=a.offset().left,s=a.parents(".w-e-bar");u-s.offset().left>=s.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(yI),SI=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.type="modal",r.$elem=Mp('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("click",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return rx(t,e),t.prototype.genSelfElem=function(){var e=this,t=Mp('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),n=pO.get(this);return t.on("click",(function(){e.hide(),null==n||n.restoreSelection()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(bI);function CI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r[0],o[0]]}function DI(e,t,n){var r=Mp('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Mp('<textarea type="text" id="'+t+'" placeholder="'+(n||"")+'"></textarea>');return r.append(o),[r[0],o[0]]}function AI(e,t){var n=Mp('<div class="button-container"></div>'),r=Mp('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n[0],r[0]]}var xI=function(e){function t(t,n,r){void 0===r&&(r=!1);var o=e.call(this,t,n,r)||this;return o.$body=Mp("body"),o.modal=null,o.menu=n,o}return rx(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=BI(this),t=this.menu.getModalPositionNode(e);return Cf.isElement(t)?wB(e,t,"modal"):EB(e)},t.prototype.handleModal=function(){var e=BI(this),t=this.menu;if(null==this.modal){var n=new SI(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=BI(this),r=this.menu;if(null!=r.getModalContentElem){var o=QO.getTextarea(n),i=QO.getToolbar(n),a=((null==i?void 0:i.getConfig())||{}).modalAppendToBody,u=r.getModalContentElem(n);if(e.renderContent(u),a)e.setStyle({left:"0",right:"0"});else{var s=this.getPosition();e.setStyle(s)}t&&(a?e.appendTo(this.$body):e.appendTo(o.$textAreaContainer)),e.show(),a||SB(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(yI),OI=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="selectList",r.$elem=Mp('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r.$elem.on("click",(function(e){e.stopPropagation()})),r}return rx(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=Mp("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Mp('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var u=Mp('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(u),a.addClass("selected")}a.append(Mp('<span data-value="'+t+'">'+r+"</span>")),a.attr("title",r),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(bI),TI=function(){function e(e,t,n){var r=this;void 0===n&&(n=!1),this.$elem=Mp('<div class="w-e-bar-item"></div>'),this.$button=Mp('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var o=t.tag,i=t.title,a=t.width,u=t.iconSvg,s=void 0===u?"":u,l=t.hotkey,c=void 0===l?"":l;if("select"!==o)throw new Error("Invalid tag '"+o+"', expected 'select'");var f=this.$button;a&&f.css("width",a+"px"),f.attr("data-menu-key",e),gI(f,s,i,c,n),this.$elem.append(f),this.menu=t,ZN((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("click",(function(t){t.preventDefault(),BI(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=BI(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new OI(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=BI(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=BI(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=hI();o.empty(),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=BI(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),NI=function(){function e(e){this.$elem=Mp('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Mp('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Mp('<button type="button"></button>');var t=e.key,n=e.iconSvg,r=e.title,o=this.$elem,i=this.$button;if(n){var a=Mp(n);pI(a),i.append(a)}else i.text(r);i.attr("data-menu-key",t);var u=hI();i.append(u),o.append(i);var s=this.$container;o.append(s);var l=this.createObserver();this.observe(l)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Mp(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),kI=new WeakMap;function BI(e){var t=fO.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function II(e,t,n){void 0===n&&(n=!1);var r=kI.get(t);if(r)return r;var o=t.tag;if("button"===o){var i=t.showDropPanel,a=t.showModal;r=i?new wI(e,t,n):a?new xI(e,t,n):new mI(e,t,n)}if("select"===o&&(r=new TI(e,t,n)),null==r)throw new Error("Invalid tag in menu "+JSON.stringify(t));return kI.set(t,r),r}function FI(e,t){var n=e.selection;return null!=n&&!qf.isCollapsed(n)&&!QO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))&&!!ed.isText(t)}var PI=function(){function e(){var e=this;this.$elem=Mp('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Zg((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Cf.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),ZN((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),QO.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var e=this.$elem,t=!1,n=window.innerHeight;n&&n>=360&&n-e[0].getBoundingClientRect().bottom<360&&(t=!0),t?e.addClass("w-e-bar-bottom"):e.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var e=this;ZN((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=vI();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=nT[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=t.getMenuConfig(e);i&&void 0!==i.iconSvg&&(r.iconSvg=i.iconSvg);var a=II(e,r);this.hoverbarItems.push(a),fO.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Cf.isElement(e)){var r=wB(t,e,"bar");return n.css(r),void SB(t,n)}if(ed.isText(e))return r=EB(t),n.css(r),void SB(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[],o=function(o){var i=t[o],a=i.match,u=i.menuKeys,s=void 0===u?[]:u,l=a||function(e,t){return QO.checkNodeType(t,o)},c=ax(Nf.nodes(e,{match:function(t){return l(e,t)},universal:!0}),1),f=c[0];if(null!=f)return n=f[0],r=s,"break"};for(var i in t)if("break"===o(i))break;return null==n||0===r.length?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=lO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){var e=this.getEditorInstance().getConfig().hoverbarKeys,t=void 0===e?{}:e,n=t.text;return n&&null==n.match&&(n.match=FI),t},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=QO.findPath(null,e),r=QO.findPath(null,t);return Mf.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function RI(e,t,n,r){if(mO.set(e,t),bO.set(e,n),Cf.isElement(e)){var o=e.children;if((void 0===o?[]:o).forEach((function(t,n){return RI(t,n,e,r)})),Nf.isVoid(r,e)){var i=ax(Rf.texts(e),1),a=ax(i[0],1)[0];mO.set(a,0),bO.set(a,e)}}}function _I(e){var t=e.selector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.html,u=e.plugins,s=void 0===u?[]:u,l=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];yC.withoutSaving(t,(()=>{Nf.withoutNormalizing(t,(()=>{var e=r.map(jf.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],u=a&&a[a.length-1],s=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,u),l=yC.isSaving(t),c=yC.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!Mf.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!Mf.equals(e.path,t.path)))(e,u)||s)),a&&c)s&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e,n=t.insertText,r=t.insertNode,o=t.insertFragment,i=t.dangerouslyInsertHtml;return t.insertText=function(e){if(t.getConfig().maxLength){var r=QO.getLeftLengthOfMaxLength(t);r<=0||(r<e.length?n(e.slice(0,r)):n(e))}else n(e)},t.insertNode=function(e){if(t.getConfig().maxLength){var n=QO.getLeftLengthOfMaxLength(t);n<=0||n<Rf.string(e).length||r(e)}else r(e)},t.insertFragment=function(e){if(t.getConfig().maxLength){if(e.length>0){var n=e[0];if(QO.getLeftLengthOfMaxLength(t)<Rf.string(n).length)return;o([n]);for(var r=1;r<e.length;r++)t.insertNode(e[r])}}else o(e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e)if(t.getConfig().maxLength){var r=QO.getLeftLengthOfMaxLength(t);if(!(r<=0)){var o=document.createElement("div");o.innerHTML=e;var a=Array.from(o.childNodes).reduce((function(e,t){var n=t.nodeType,r=t.nodeName;return t?n===FO.TEXT_NODE?e+(t.textContent||""):n===FO.ELEMENT_NODE?Vk.has(r.toLowerCase())?e:e+(t.textContent||""):e:e}),"");r<a.length||i(e,n)}}else i(e,n)},t}(function(e){var t=e;return t.on=function(e,n){var r=hB(t);if(r.on(e,n),"destroyed"===e&&gB(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),gB(t,o)}},t.once=function(e,n){hB(t).once(e,n)},t.off=function(e,n){hB(t).off(e,n)},t.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=hB(t);o.emit.apply(o,ux([e],ax(n))),"destroyed"===e&&(yB(t).forEach((function(e){return o.off("destroyed",e)})),mB(t))},t}(function(e){var t=e;return t.select=function(e){md.select(t,e)},t.deselect=function(){var n=t.selection,r=QO.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&md.deselect(e)},t.move=function(t,n){void 0===n&&(n=!1),t&&(t<0||md.move(e,{distance:t,unit:"character",reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=OO.get(t);null!=e&&(t.focus(),md.select(t,e))},t.getSelectionPosition=function(){return EB(t)},t.getNodePosition=function(e){return wB(t,e)},t.isSelectedAll=function(){var e=t.selection;if(null==e)return!1;var n=ax(qf.edges(e),2),r=n[0],o=n[1],i=ax(Nf.edges(t,[]),2),a=i[0],u=i[1];return!(!$f.equals(r,a)||!$f.equals(o,u))},t.selectAll=function(){var e=Nf.start(t,[]),n=Nf.end(t,[]);md.select(t,{anchor:e,focus:n})},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.insertText=function(e){t.getConfig().readOnly||r(e)},t.apply=function(e){var n,r,i,a,u,s,l,c,f=[];switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=ix(Nf.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=ax(p.value,2),v=h[0],g=h[1],y=QO.findKey(t,v);f.push([g,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=ix(Nf.levels(t,{at:Mf.parent(e.path)})),b=m.next();!b.done;b=m.next()){var E=ax(b.value,2);v=E[0],g=E[1],y=QO.findKey(t,v),f.push([g,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var w=ix(Nf.levels(t,{at:Mf.common(Mf.parent(e.path),Mf.parent(e.newPath))})),S=w.next();!S.done;S=w.next()){var C=ax(S.value,2);v=C[0],g=C[1],y=QO.findKey(t,v),f.push([g,y])}}catch(e){u={error:e}}finally{try{S&&!S.done&&(s=w.return)&&s.call(w)}finally{if(u)throw u.error}}}o(e);try{for(var D=ix(f),A=D.next();!A.done;A=D.next()){var x=ax(A.value,2);g=x[0],y=x[1],v=ax(Nf.node(t,g),1)[0],DO.set(v,y)}}catch(e){l={error:e}}finally{try{A&&!A.done&&(c=D.return)&&c.call(D)}finally{if(l)throw l.error}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&qf.isCollapsed(e.selection)){var r=Nf.above(e,{match:function(t){return Nf.isBlock(e,t)},at:e.selection});if(r){var o=ax(r,2)[1],a=Nf.range(e,o,e.selection.anchor),u=function(e,t){var n=Nf.range(e,qf.end(t)),r=Array.from(Nf.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(tk(e,Nf.range(e,r[o]),n))return Nf.range(e,r[o],n);if(r.length<2)return Nf.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)tk(e,Nf.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return Nf.range(e,r[i],n)}(t,a);qf.isCollapsed(u)||md.delete(e,{at:u})}}},t.onChange=function(){var e=t.selection;null!=e&&OO.set(t,e),t.emit("change"),n()},t.handleTab=function(){t.insertText(" ")},t.getHtml=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return JN(e,t)})).join("")},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Rf.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":Nf.string(e,n)},t.getElemsByType=function(e,n){var r,o;void 0===n&&(n=!1);var i=[],a=Nf.nodes(t,{at:[],universal:!0});try{for(var u=ix(a),s=u.next();!s.done;s=u.next()){var l=ax(s.value,1)[0];if(Cf.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var c=QN(QO.findKey(t,l).id);i.push(ox(ox({},l),{id:c}))}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return i},t.getElemsByTypePrefix=function(e){return t.getElemsByType(e,!0)},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Cf.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(ed.isText(a)&&""===a.text)return!0}return!1},t.clear=function(){md.delete(t,{at:{anchor:Nf.start(t,[]),focus:Nf.end(t,[])}}),0===t.children.length&&md.insertNodes(t,[{type:"paragraph",children:[{text:""}]}])},t.getParentNode=function(e){return QO.getParentNode(t,e)},t.dangerouslyInsertHtml=function(e,n){if(void 0===e&&(e=""),void 0===n&&(n=!1),e){var r=document.createElement("div");r.innerHTML=e;var o=Array.from(r.childNodes);if(o=o.filter((function(e){var t=e.nodeType,n=e.nodeName;return t===FO.TEXT_NODE||t===FO.ELEMENT_NODE&&!Vk.has(n.toLowerCase())})),0!==o.length){var i=t.selection;if(null!=i){var a=null;QO.isSelectedEmptyParagraph(t)&&!n&&(a=[i.focus.path[0]]),r.setAttribute("hidden","true"),document.body.appendChild(r);var u=0;o.forEach((function(e){var n=e.nodeType,r=e.nodeName,o=e.textContent,i=void 0===o?"":o;if(n!==FO.TEXT_NODE)if("BR"!==r){var a=e,s=!1;if(nk.includes(r.toLowerCase()))s=!0;else for(var l in ik)if(a.matches(l)){s=!0;break}if(s){var c=_k(Mp(a),t);return Array.isArray(c)?(c.forEach((function(e){return Gk(t,e)})),u++):(Gk(t,c),u++),void(QO.isSelectedVoidNode(t)&&t.move(1))}var f=window.getComputedStyle(a).display;QO.isSelectedEmptyParagraph(t)||f.indexOf("inline")<0&&t.insertBreak(),t.dangerouslyInsertHtml(a.innerHTML,!0)}else t.insertText("\n");else{if(!i||!i.trim())return;t.insertNode({text:i})}})),u&&a&&QO.isEmptyPath(t,a)&&md.removeNodes(t,{at:a}),r.remove()}}}},t.setHtml=function(e){void 0===e&&(e="");var n=t.isDisabled(),r=t.isFocused(),o=JSON.stringify(t.selection);t.enable(),t.focus(),t.clear();var i=jk(t,e);if(md.insertFragment(t,i),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(o))}catch(e){t.select(Nf.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in nT)e.push(t);return e},t.getConfig=function(){var e=hO.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=Wk(Gc());return t.id="wangEditor-"+eT++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(QO.toDOMNode(t,t).focus({preventScroll:!0}),xO.set(t,!0),e){var n=Nf.end(t,[]);md.select(t,n)}else{var r=OO.get(t);r?md.select(t,r):md.select(t,Nf.start(t,[]))}},t.isFocused=function(){return!!xO.get(t)},t.blur=function(){QO.toDOMNode(t,t).blur(),md.deselect(t),xO.set(t,!1)},t.updateView=function(){QO.getTextarea(t).changeViewState();var e=QO.getToolbar(t);e&&e.changeToolbarState();var n=QO.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=QO.getTextarea(t);e.destroy(),iO.delete(t),aO.delete(e);var n=QO.getToolbar(t);n&&(n.destroy(),sO.delete(t),uO.delete(n));var r=QO.getHoverbar(t);r&&(r.destroy(),cO.delete(t),lO.delete(r)),t.isDestroyed=!0,t.emit("destroyed")}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Mp("#"+e);if(0!==r.length){var o=r[0];if(!QO.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=QO.getTextarea(t),a=i.$textAreaContainer,u=i.$scroll,s=r.offset().top,l=a.offset().top;u[0].scrollBy({top:s-l,behavior:"smooth"})}},t.showProgressBar=function(e){e<1||QO.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){var e=dO.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return QO.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=QO.getToolbar(t);n&&(e=n.$box);var r=QO.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){if(t.isFullScreen){var e=QO.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen")}),200)}},t.getEditableContainer=function(){return QO.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return Lk(e,"data-w-e-textarea",t)}(l,n))throw new Error("Repeated create editor by selector '"+n+"'");var c=function(e){void 0===e&&(e={});var t=Jg(tT),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Lh(t,(function(e,t){n[t]=ox(ox({},e),o[t]||{})})),delete e.MENU_CONF,ox({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);hO.set(l,c);var f=c.hoverbarKeys,d=void 0===f?{}:f;if(s.forEach((function(e){l=e(l)})),null!=a&&(l.children=jk(l,a)),i&&i.length&&(l.children=i),0===l.children.length&&(l.children=[{type:"paragraph",children:[{text:""}]}]),QO.normalizeContent(l),n){var p=new dI(n);iO.set(l,p),aO.set(p,l),p.changeViewState(),ZN((function(){var e=p.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var h=void 0;Object.keys(d).length>0&&(h=new PI,lO.set(h,l),cO.set(l,h)),l.on("change",(function(){l.hidePanelOrModal()})),l.on("scroll",(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return RI(e,t,l,l)}));var v=c.onCreated,g=c.onDestroyed;return v&&l.on("created",(function(){return v(l)})),g&&l.on("destroyed",(function(){return g(l)})),ZN((function(){return l.emit("created")})),l}var LI=iA("splice"),jI=lE.TypeError,MI=Math.max,zI=Math.min;cC({target:"Array",proto:!0,forced:!LI},{splice:function(e,t){var n,r,o,i,a,u,s=SE(this),l=pS(s),c=$S(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=zI(MI(cS(t),0),l-c)),l+n-r>9007199254740991)throw jI("Maximum allowed length exceeded");for(o=AS(s,r),i=0;i<r;i++)(a=c+i)in s&&tD(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var HI=function(){function e(e,t){var n=this;this.$toolbar=Mp('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Zg((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Mp(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()}),{passive:!1}),r.append(o),ZN((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.insertKeys,u=void 0===a?{index:0,keys:[]}:a,s=r.excludeKeys,l=void 0===s?[]:s,c=Jg(i);u.keys.length>0&&("string"==typeof u.keys&&(u.keys=[u.keys]),u.keys.forEach((function(e,t){c.splice(u.index+t,0,e)})));var f=c.filter((function(e){if("string"==typeof e){if(l.includes(e))return!1}else if(l.includes(e.key))return!1;return!0})),d=f.length;f.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===d)return;if("|"===t)return;var i=vI();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new NI(e)}(e),o=e.menuKeys,i=void 0===o?[]:o,a=this.config.excludeKeys,u=void 0===a?[]:a;i.forEach((function(e){u.includes(e)||t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof NI,o=this.menus,i=o[e];if(null==i){var a=nT[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var u=n.getMenuConfig(e);u&&void 0!==u.iconSvg&&(i.iconSvg=u.iconSvg);var s=II(e,i,r);this.toolbarItems.push(s),fO.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=uO.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();var UI=$w.EXISTS,$I=bw.f,VI=Function.prototype,GI=mE(VI.toString),WI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,qI=mE(WI.exec);function KI(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,u=e.maxNumberOfFiles,s=void 0===u?100:u,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,v=e.withCredentials,g=void 0!==v&&v,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,E=void 0===b?function(e){return e}:b,w=e.onSuccess,S=void 0===w?function(e,t){}:w,C=e.onError,D=void 0===C?function(e,t,n){console.error(e.name+" upload error",t,n)}:C,A=e.onProgress,x=void 0===A?function(e){}:A;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var O=n;d&&(O=function(e,t){var n=ax(e.split("#"),2),r=n[0],o=n[1],i=[];Lh(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(O,c));var T=new Im({onBeforeUpload:E,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(rE,{endpoint:O,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:m});return T.on("upload-success",(function(e,t){var n=t.body,r=void 0===n?{}:n;try{S(e,r)}catch(e){console.error("wangEditor upload file - onSuccess error",e)}T.removeFile(e.id)})),T.on("progress",(function(e){e<1||x(e)})),T.on("upload-error",(function(e,t,n){try{D(e,t,n)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T.on("restriction-failed",(function(e,t){try{D(e,t)}catch(e){console.error("wangEditor upload file - onError error",e)}T.removeFile(e.id)})),T}function YI(e){return YI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YI(e)}function XI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){XI(e,t,n[t])}))}return e}function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eF(e,t,n){return t&&QI(e.prototype,t),n&&QI(e,n),e}function tF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nF(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tF(e)}function rF(e){return rF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rF(e)}function oF(e,t){return oF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oF(e,t)}function iF(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oF(e,t)}KE&&!UI&&$I(VI,"name",{configurable:!0,get:function(){try{return qI(WI,GI(this))[1]}catch(e){return""}}});var aF={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},uF=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};JI(this,e),this.init(t,n)}return eF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||aF,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,ZI({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),sF=function(){function e(){JI(this,e),this.observers={}}return eF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function lF(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function cF(e){return null==e?"":""+e}function fF(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function dF(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function pF(e,t,n){var r=dF(e,t,Object);r.obj[r.k]=n}function hF(e,t){var n=dF(e,t),r=n.obj,o=n.k;if(r)return r[o]}function vF(e,t,n){var r=hF(e,n);return void 0!==r?r:hF(t,n)}function gF(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):gF(e[r],t[r],n):e[r]=t[r]);return e}function yF(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var mF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function bF(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return mF[e]})):e}var EF="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function wF(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,u=r.slice(i,i+a).join(n),s=o[u];void 0===s&&r.length>i+a;)a++,s=o[u=r.slice(i,i+a).join(n)];if(void 0===s)return;if("string"==typeof s)return s;if(u&&"string"==typeof s[u])return s[u];var l=r.slice(i+a).join(n);return l?wF(s,l,n):void 0}o=o[r[i]]}return o}}var SF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return JI(this,t),n=nF(this,rF(t).call(this)),EF&&sF.call(tF(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return iF(t,sF),eF(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var u=hF(this.data,a);return u||!i||"string"!=typeof n?u:wF(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),pF(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=hF(this.data,a)||{};r?gF(u,n,o):u=ZI({},u,n),pF(this.data,a,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?ZI({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),CF={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},DF={},AF=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return JI(this,t),n=nF(this,rF(t).call(this)),EF&&sF.call(tF(n)),fF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,tF(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=uF.create("translator"),n}return iF(t,sF),eF(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==YI(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),u=a.key,s=a.namespaces,l=s[s.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+u}return u}var p=this.resolve(e,n),h=p&&p.res,v=p&&p.usedKey||u,g=p&&p.exactUsedKey||u,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(E&&h&&w&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,ZI({},n,{ns:s})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(i){var S="[object Array]"===y,C=S?[]:{},D=S?g:v;for(var A in h)if(Object.prototype.hasOwnProperty.call(h,A)){var x="".concat(D).concat(i).concat(A);C[A]=this.translate(x,ZI({},n,{joinArrays:!1,ns:s})),C[A]===x&&(C[A]=h[A])}h=C}}else if(E&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var O=!1,T=!1,N=void 0!==n.count&&"string"!=typeof n.count,k=t.hasDefaultValue(n),B=N?this.pluralResolver.getSuffix(c,n.count):"",I=n["defaultValue".concat(B)]||n.defaultValue;!this.isValidLookup(h)&&k&&(O=!0,h=I),this.isValidLookup(h)||(T=!0,h=u);var F=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,P=F&&T?void 0:h,R=k&&I!==h&&this.options.updateMissing;if(T||O||R){if(this.logger.log(R?"updateKey":"missingKey",c,l,u,R?I:h),i){var _=this.resolve(u,ZI({},n,{keySeparator:!1}));_&&_.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var L=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var M=0;M<j.length;M++)L.push(j[M]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);var z=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,R?r:P,R,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,R?r:P,R,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&N?L.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){z([e],u+t,n["defaultValue".concat(t)]||I)}))})):z(L,u,I))}h=this.extendTranslation(h,e,n,p,r),T&&h===u&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(u)),(T||O)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(ZI({},n,{interpolation:ZI({},this.options.interpolation,n.interpolation)}));var a,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var s=e.match(this.interpolator.nestingRegexp);a=s&&s.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=ZI({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=CF.handle(d,e,t,this.options&&this.options.postProcessPassResolved?ZI({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),l=s.key;n=l;var c=s.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&("string"==typeof u.context||"number"==typeof u.context)&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!DF["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(DF["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(c+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function xF(e){return e.charAt(0).toUpperCase()+e.slice(1)}var OF=function(){function e(t){JI(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=uF.create("languageUtils")}return eF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xF(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=xF(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=xF(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),TF=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],NF={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function kF(){var e={};return TF.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:NF[t.fc]}}))})),e}var BF=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};JI(this,e),this.languageUtils=t,this.options=n,this.logger=uF.create("pluralResolver"),this.rules=kF()}return eF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),IF=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};JI(this,e),this.logger=uF.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return eF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:bF,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?yF(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?yF(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?yF(t.nestingPrefix):t.nestingPrefixEscaped||yF("$t("),this.nestingSuffix=t.nestingSuffix?yF(t.nestingSuffix):t.nestingSuffixEscaped||yF(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(u.formatSeparator)<0){var o=vF(t,s,e);return u.alwaysFormat?u.format(o,void 0,n,ZI({},r,t,{interpolationkey:e})):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),l=i.join(u.formatSeparator).trim();return u.format(vF(t,s,a),l,n,ZI({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,p=[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}];return p.forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=cF(i));var s=t.safeValue(i);if(e=e.replace(o[0],s),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ZI({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=ZI({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),s=c,l=!0}if((r=t(u.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=cF(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=s.reduce((function(e,t){return o.format(e,t,i.lng,ZI({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),FF=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return JI(this,t),o=nF(this,rF(t).call(this)),EF&&sF.call(tF(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=uF.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return iF(t,sF),eF(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=dF(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,ZI({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function PF(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===YI(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===YI(e[2])||"object"===YI(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function RF(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function _F(){}var LF=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(JI(this,t),e=nF(this,rF(t).call(this)),EF&&sF.call(tF(e)),e.options=RF(n),e.services={},e.logger=uF,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),nF(e,tF(e));setTimeout((function(){e.init(n,r)}),0)}return e}return iF(t,sF),eF(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=ZI({},PF(),this.options,RF(t)),this.format=this.options.interpolation.format,n||(n=_F),!this.options.isClone){this.modules.logger?uF.init(r(this.modules.logger),this.options):uF.init(null,this.options);var o=new OF(this.options);this.store=new SF(this.options.resources,this.options);var i=this.services;i.logger=uF,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new BF(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new IF(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new FF(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new AF(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var s=["addResource","addResources","addResourceBundle","removeResourceBundle"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=lF(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_F,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=lF();return e||(e=this.languages),t||(t=this.options.ns),n||(n=_F),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&CF.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=lF();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var i;if("object"!==YI(o)){for(var a=arguments.length,u=new Array(a>2?a-2:0),s=2;s<a;s++)u[s-2]=arguments[s];i=r.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=ZI({},o);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns;var l=r.options.keySeparator||".",c=n?"".concat(n).concat(l).concat(t):t;return r.t(c,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=lF();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lF();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_F,o=ZI({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=ZI({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new AF(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(),jF=new LF;function MF(e,t){jF.addResourceBundle(e,"translation",t,!0,!0)}function zF(e){jF.changeLanguage(e)}function HF(e){return jF.getResourceBundle(e,"translation")}jF.init({lng:"zh-CN",resources:{}});var UF=jF.t.bind(jF);MF("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),MF("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var $F=ea?{}.toString:function(){return"[object "+oa(this)+"]"};ea||wi(Object.prototype,"toString",$F,{unsafe:!0});var VF=Array.isArray||function(e){return"Array"==Ur(e)},GF=function(){},WF=[],qF=Jr("Reflect","construct"),KF=/^\s*(?:class|function)\b/,YF=Mr(KF.exec),XF=!KF.exec(GF),ZF=function(e){if(!Yr(e))return!1;try{return qF(GF,WF,e),!0}catch(e){return!1}},JF=!qF||xr((function(){var e;return ZF(ZF.call)||!ZF(Object)||!ZF((function(){e=!0}))||e}))?function(e){if(!Yr(e))return!1;switch(oa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return XF||!!YF(KF,ri(e))}:ZF,QF=Fo("species"),eP=Ar.Array,tP=function(e,t){return new(function(e){var t;return VF(e)&&(t=e.constructor,(JF(t)&&(t===eP||VF(t.prototype))||Xr(t)&&null===(t=t[QF]))&&(t=void 0)),void 0===t?eP:t}(e))(0===t?0:t)},nP=Mr([].push),rP=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=So(s),v=Gr(h),g=yu(l,c),y=ki(v),m=0,b=f||tP,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:nP(E,d)}else switch(e){case 4:return!1;case 7:nP(E,d)}return i?-1:r||o?o:E}},oP={forEach:rP(0),map:rP(1),filter:rP(2),some:rP(3),every:rP(4),find:rP(5),findIndex:rP(6),filterReject:rP(7)}.forEach,iP=function(e,t){var n=[][e];return!!n&&xr((function(){n.call(null,t||function(){throw 1},1)}))}("forEach"),aP=iP?[].forEach:function(e){return oP(this,e,arguments.length>1?arguments[1]:void 0)},uP=function(e){if(e&&e.forEach!==aP)try{Jo(e,"forEach",aP)}catch(t){e.forEach=aP}};for(var sP in fs)fs[sP]&&uP(Ar[sP]&&Ar[sP].prototype);uP(hs),MF("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",editSize:"Edit size",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link",ok:"Ok",width:"Width",height:"Height"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),MF("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",editSize:"修改尺寸",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接",ok:"确定",width:"宽度",height:"高度"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var lP={type:"paragraph",renderElem:function(e,t,n){return Fv("p",null,t)}},cP="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fP(e){var t={exports:{}};return e(t,t.exports),t.exports}var dP,pP,hP=function(e){return e&&e.Math==Math&&e},vP=hP("object"==typeof globalThis&&globalThis)||hP("object"==typeof window&&window)||hP("object"==typeof self&&self)||hP("object"==typeof cP&&cP)||function(){return this}()||Function("return this")(),gP=function(e){try{return!!e()}catch(e){return!0}},yP=!gP((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mP=Function.prototype.call,bP=mP.bind?mP.bind(mP):function(){return mP.apply(mP,arguments)},EP={}.propertyIsEnumerable,wP=Object.getOwnPropertyDescriptor,SP=wP&&!EP.call({1:2},1)?function(e){var t=wP(this,e);return!!t&&t.enumerable}:EP,CP={f:SP},DP=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},AP=Function.prototype,xP=AP.bind,OP=AP.call,TP=xP&&xP.bind(OP),NP=xP?function(e){return e&&TP(OP,e)}:function(e){return e&&function(){return OP.apply(e,arguments)}},kP=NP({}.toString),BP=NP("".slice),IP=function(e){return BP(kP(e),8,-1)},FP=vP.Object,PP=NP("".split),RP=gP((function(){return!FP("z").propertyIsEnumerable(0)}))?function(e){return"String"==IP(e)?PP(e,""):FP(e)}:FP,_P=vP.TypeError,LP=function(e){if(null==e)throw _P("Can't call method on "+e);return e},jP=function(e){return RP(LP(e))},MP=function(e){return"function"==typeof e},zP=function(e){return"object"==typeof e?null!==e:MP(e)},HP=function(e){return MP(e)?e:void 0},UP=function(e,t){return arguments.length<2?HP(vP[e]):vP[e]&&vP[e][t]},$P=NP({}.isPrototypeOf),VP=UP("navigator","userAgent")||"",GP=vP.process,WP=vP.Deno,qP=GP&&GP.versions||WP&&WP.version,KP=qP&&qP.v8;KP&&(pP=(dP=KP.split("."))[0]>0&&dP[0]<4?1:+(dP[0]+dP[1])),!pP&&VP&&(!(dP=VP.match(/Edge\/(\d+)/))||dP[1]>=74)&&(dP=VP.match(/Chrome\/(\d+)/))&&(pP=+dP[1]);var YP=pP,XP=!!Object.getOwnPropertySymbols&&!gP((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&YP&&YP<41})),ZP=XP&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,JP=vP.Object,QP=ZP?function(e){return"symbol"==typeof e}:function(e){var t=UP("Symbol");return MP(t)&&$P(t.prototype,JP(e))},eR=vP.String,tR=function(e){try{return eR(e)}catch(e){return"Object"}},nR=vP.TypeError,rR=function(e){if(MP(e))return e;throw nR(tR(e)+" is not a function")},oR=function(e,t){var n=e[t];return null==n?void 0:rR(n)},iR=vP.TypeError,aR=Object.defineProperty,uR=function(e,t){try{aR(vP,e,{value:t,configurable:!0,writable:!0})}catch(n){vP[e]=t}return t},sR=vP["__core-js_shared__"]||uR("__core-js_shared__",{}),lR=fP((function(e){(e.exports=function(e,t){return sR[e]||(sR[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),cR=vP.Object,fR=function(e){return cR(LP(e))},dR=NP({}.hasOwnProperty),pR=Object.hasOwn||function(e,t){return dR(fR(e),t)},hR=0,vR=Math.random(),gR=NP(1..toString),yR=function(e){return"Symbol("+(void 0===e?"":e)+")_"+gR(++hR+vR,36)},mR=lR("wks"),bR=vP.Symbol,ER=bR&&bR.for,wR=ZP?bR:bR&&bR.withoutSetter||yR,SR=function(e){if(!pR(mR,e)||!XP&&"string"!=typeof mR[e]){var t="Symbol."+e;XP&&pR(bR,e)?mR[e]=bR[e]:mR[e]=ZP&&ER?ER(t):wR(t)}return mR[e]},CR=vP.TypeError,DR=SR("toPrimitive"),AR=function(e){var t=function(e,t){if(!zP(e)||QP(e))return e;var n,r=oR(e,DR);if(r){if(void 0===t&&(t="default"),n=bP(r,e,t),!zP(n)||QP(n))return n;throw CR("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&MP(n=e.toString)&&!zP(r=bP(n,e)))return r;if(MP(n=e.valueOf)&&!zP(r=bP(n,e)))return r;if("string"!==t&&MP(n=e.toString)&&!zP(r=bP(n,e)))return r;throw iR("Can't convert object to primitive value")}(e,t)}(e,"string");return QP(t)?t:t+""},xR=vP.document,OR=zP(xR)&&zP(xR.createElement),TR=function(e){return OR?xR.createElement(e):{}},NR=!yP&&!gP((function(){return 7!=Object.defineProperty(TR("div"),"a",{get:function(){return 7}}).a})),kR=Object.getOwnPropertyDescriptor,BR={f:yP?kR:function(e,t){if(e=jP(e),t=AR(t),NR)try{return kR(e,t)}catch(e){}if(pR(e,t))return DP(!bP(CP.f,e,t),e[t])}},IR=vP.String,FR=vP.TypeError,PR=function(e){if(zP(e))return e;throw FR(IR(e)+" is not an object")},RR=vP.TypeError,_R=Object.defineProperty,LR={f:yP?_R:function(e,t,n){if(PR(e),t=AR(t),PR(n),NR)try{return _R(e,t,n)}catch(e){}if("get"in n||"set"in n)throw RR("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},jR=yP?function(e,t,n){return LR.f(e,t,DP(1,n))}:function(e,t,n){return e[t]=n,e},MR=NP(Function.toString);MP(sR.inspectSource)||(sR.inspectSource=function(e){return MR(e)});var zR,HR,UR,$R=sR.inspectSource,VR=vP.WeakMap,GR=MP(VR)&&/native code/.test($R(VR)),WR=lR("keys"),qR=function(e){return WR[e]||(WR[e]=yR(e))},KR={},YR=vP.TypeError,XR=vP.WeakMap;if(GR||sR.state){var ZR=sR.state||(sR.state=new XR),JR=NP(ZR.get),QR=NP(ZR.has),e_=NP(ZR.set);zR=function(e,t){if(QR(ZR,e))throw new YR("Object already initialized");return t.facade=e,e_(ZR,e,t),t},HR=function(e){return JR(ZR,e)||{}},UR=function(e){return QR(ZR,e)}}else{var t_=qR("state");KR[t_]=!0,zR=function(e,t){if(pR(e,t_))throw new YR("Object already initialized");return t.facade=e,jR(e,t_,t),t},HR=function(e){return pR(e,t_)?e[t_]:{}},UR=function(e){return pR(e,t_)}}var n_={set:zR,get:HR,has:UR,enforce:function(e){return UR(e)?HR(e):zR(e,{})},getterFor:function(e){return function(t){var n;if(!zP(t)||(n=HR(t)).type!==e)throw YR("Incompatible receiver, "+e+" required");return n}}},r_=Function.prototype,o_=yP&&Object.getOwnPropertyDescriptor,i_=pR(r_,"name"),a_={EXISTS:i_,PROPER:i_&&"something"===function(){}.name,CONFIGURABLE:i_&&(!yP||yP&&o_(r_,"name").configurable)},u_=fP((function(e){var t=a_.CONFIGURABLE,n=n_.get,r=n_.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;MP(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!pR(i,"name")||t&&i.name!==f)&&jR(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==vP?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:jR(e,n,i)):l?e[n]=i:uR(n,i)})(Function.prototype,"toString",(function(){return MP(this)&&n(this).source||$R(this)}))})),s_=Math.ceil,l_=Math.floor,c_=function(e){var t=+e;return t!=t||0===t?0:(t>0?l_:s_)(t)},f_=Math.max,d_=Math.min,p_=function(e,t){var n=c_(e);return n<0?f_(n+t,0):d_(n,t)},h_=Math.min,v_=function(e){return e>0?h_(c_(e),9007199254740991):0},g_=function(e){return v_(e.length)},y_=function(e){return function(t,n,r){var o,i=jP(t),a=g_(i),u=p_(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},m_={includes:y_(!0),indexOf:y_(!1)},b_=m_.indexOf,E_=NP([].push),w_=function(e,t){var n,r=jP(e),o=0,i=[];for(n in r)!pR(KR,n)&&pR(r,n)&&E_(i,n);for(;t.length>o;)pR(r,n=t[o++])&&(~b_(i,n)||E_(i,n));return i},S_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],C_=S_.concat("length","prototype"),D_={f:Object.getOwnPropertyNames||function(e){return w_(e,C_)}},A_={f:Object.getOwnPropertySymbols},x_=NP([].concat),O_=UP("Reflect","ownKeys")||function(e){var t=D_.f(PR(e)),n=A_.f;return n?x_(t,n(e)):t},T_=function(e,t){for(var n=O_(t),r=LR.f,o=BR.f,i=0;i<n.length;i++){var a=n[i];pR(e,a)||r(e,a,o(t,a))}},N_=/#|\.prototype\./,k_=function(e,t){var n=I_[B_(e)];return n==P_||n!=F_&&(MP(t)?gP(t):!!t)},B_=k_.normalize=function(e){return String(e).replace(N_,".").toLowerCase()},I_=k_.data={},F_=k_.NATIVE="N",P_=k_.POLYFILL="P",R_=k_,__=BR.f,L_=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?vP:l?vP[u]||uR(u,{}):(vP[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=__(n,r))&&a.value:n[r],!R_(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;T_(i,o)}(e.sham||o&&o.sham)&&jR(i,"sham",!0),u_(n,r,i,e)}},j_=NP(NP.bind),M_=Array.isArray||function(e){return"Array"==IP(e)},z_={};z_[SR("toStringTag")]="z";var H_="[object z]"===String(z_),U_=SR("toStringTag"),$_=vP.Object,V_="Arguments"==IP(function(){return arguments}()),G_=H_?IP:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$_(e),U_))?n:V_?IP(t):"Object"==(r=IP(t))&&MP(t.callee)?"Arguments":r},W_=function(){},q_=[],K_=UP("Reflect","construct"),Y_=/^\s*(?:class|function)\b/,X_=NP(Y_.exec),Z_=!Y_.exec(W_),J_=function(e){if(!MP(e))return!1;try{return K_(W_,q_,e),!0}catch(e){return!1}},Q_=!K_||gP((function(){var e;return J_(J_.call)||!J_(Object)||!J_((function(){e=!0}))||e}))?function(e){if(!MP(e))return!1;switch(G_(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Z_||!!X_(Y_,$R(e))}:J_,eL=SR("species"),tL=vP.Array,nL=function(e,t){return new(function(e){var t;return M_(e)&&(t=e.constructor,(Q_(t)&&(t===tL||M_(t.prototype))||zP(t)&&null===(t=t[eL]))&&(t=void 0)),void 0===t?tL:t}(e))(0===t?0:t)},rL=NP([].push),oL=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=fR(s),v=RP(h),g=function(e,t){return rR(e),void 0===t?e:j_?j_(e,t):function(){return e.apply(t,arguments)}}(l,c),y=g_(v),m=0,b=f||nL,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:rL(E,d)}else switch(e){case 4:return!1;case 7:rL(E,d)}return i?-1:r||o?o:E}},iL={forEach:oL(0),map:oL(1),filter:oL(2),some:oL(3),every:oL(4),find:oL(5),findIndex:oL(6),filterReject:oL(7)},aL=SR("species"),uL=function(e){return YP>=51||!gP((function(){var t=[];return(t.constructor={})[aL]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},sL=iL.filter;L_({target:"Array",proto:!0,forced:!uL("filter")},{filter:function(e){return sL(this,e,arguments.length>1?arguments[1]:void 0)}});var lL=H_?{}.toString:function(){return"[object "+G_(this)+"]"};H_||u_(Object.prototype,"toString",lL,{unsafe:!0});var cL,fL=vP.String,dL=function(e){if("Symbol"===G_(e))throw TypeError("Cannot convert a Symbol value to a string");return fL(e)},pL=function(){var e=PR(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},hL=vP.RegExp,vL=gP((function(){var e=hL("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),gL=vL||gP((function(){return!hL("a","y").sticky})),yL={BROKEN_CARET:vL||gP((function(){var e=hL("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:gL,UNSUPPORTED_Y:vL},mL=Object.keys||function(e){return w_(e,S_)},bL=yP?Object.defineProperties:function(e,t){PR(e);for(var n,r=jP(t),o=mL(t),i=o.length,a=0;i>a;)LR.f(e,n=o[a++],r[n]);return e},EL=UP("document","documentElement"),wL=qR("IE_PROTO"),SL=function(){},CL=function(e){return"<script>"+e+"<\/script>"},DL=function(e){e.write(CL("")),e.close();var t=e.parentWindow.Object;return e=null,t},AL=function(){try{cL=new ActiveXObject("htmlfile")}catch(e){}var e,t;AL="undefined"!=typeof document?document.domain&&cL?DL(cL):((t=TR("iframe")).style.display="none",EL.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(CL("document.F=Object")),e.close(),e.F):DL(cL);for(var n=S_.length;n--;)delete AL.prototype[S_[n]];return AL()};KR[wL]=!0;var xL,OL,TL=Object.create||function(e,t){var n;return null!==e?(SL.prototype=PR(e),n=new SL,SL.prototype=null,n[wL]=e):n=AL(),void 0===t?n:bL(n,t)},NL=vP.RegExp,kL=gP((function(){var e=NL(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),BL=vP.RegExp,IL=gP((function(){var e=BL("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),FL=n_.get,PL=lR("native-string-replace",String.prototype.replace),RL=RegExp.prototype.exec,_L=RL,LL=NP("".charAt),jL=NP("".indexOf),ML=NP("".replace),zL=NP("".slice),HL=(OL=/b*/g,bP(RL,xL=/a/,"a"),bP(RL,OL,"a"),0!==xL.lastIndex||0!==OL.lastIndex),UL=yL.BROKEN_CARET,$L=void 0!==/()??/.exec("")[1];(HL||$L||UL||kL||IL)&&(_L=function(e){var t,n,r,o,i,a,u,s=this,l=FL(s),c=dL(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=bP(_L,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=UL&&s.sticky,h=bP(pL,s),v=s.source,g=0,y=c;if(p&&(h=ML(h,"y",""),-1===jL(h,"g")&&(h+="g"),y=zL(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==LL(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),$L&&(n=new RegExp("^"+v+"$(?!\\s)",h)),HL&&(r=s.lastIndex),o=bP(RL,p?n:s,y),p?o?(o.input=zL(o.input,g),o[0]=zL(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:HL&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),$L&&o&&o.length>1&&bP(PL,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=TL(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var VL=_L;L_({target:"RegExp",proto:!0,forced:/./.exec!==VL},{exec:VL});var GL=Function.prototype,WL=GL.apply,qL=GL.bind,KL=GL.call,YL="object"==typeof Reflect&&Reflect.apply||(qL?KL.bind(WL):function(){return KL.apply(WL,arguments)}),XL=SR("species"),ZL=RegExp.prototype,JL=function(e,t,n,r){var o=SR(e),i=!gP((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!gP((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[XL]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=NP(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=NP(e),s=t.exec;return s===VL||s===ZL.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));u_(String.prototype,e,s[0]),u_(ZL,o,s[1])}r&&jR(ZL[o],"sham",!0)},QL=NP("".charAt),ej=NP("".charCodeAt),tj=NP("".slice),nj=function(e){return function(t,n){var r,o,i=dL(LP(t)),a=c_(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=ej(i,a))<55296||r>56319||a+1===u||(o=ej(i,a+1))<56320||o>57343?e?QL(i,a):r:e?tj(i,a,a+2):o-56320+(r-55296<<10)+65536}},rj=(nj(!1),nj(!0)),oj=function(e,t,n){return t+(n?rj(e,t).length:1)},ij=Math.floor,aj=NP("".charAt),uj=NP("".replace),sj=NP("".slice),lj=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cj=/\$([$&'`]|\d{1,2})/g,fj=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=cj;return void 0!==o&&(o=fR(o),s=lj),uj(i,s,(function(i,s){var l;switch(aj(s,0)){case"$":return"$";case"&":return e;case"`":return sj(t,0,n);case"'":return sj(t,a);case"<":l=o[sj(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=ij(c/10);return 0===f?i:f<=u?void 0===r[f-1]?aj(s,1):r[f-1]+aj(s,1):i}l=r[c-1]}return void 0===l?"":l}))},dj=vP.TypeError,pj=function(e,t){var n=e.exec;if(MP(n)){var r=bP(n,e,t);return null!==r&&PR(r),r}if("RegExp"===IP(e))return bP(VL,e,t);throw dj("RegExp#exec called on incompatible receiver")},hj=SR("replace"),vj=Math.max,gj=Math.min,yj=NP([].concat),mj=NP([].push),bj=NP("".indexOf),Ej=NP("".slice),wj="$0"==="a".replace(/./,"$0"),Sj=!!/./[hj]&&""===/./[hj]("a","$0");JL("replace",(function(e,t,n){var r=Sj?"$":"$0";return[function(e,n){var r=LP(this),o=null==e?void 0:oR(e,hj);return o?bP(o,e,r,n):bP(t,dL(r),e,n)},function(e,o){var i=PR(this),a=dL(e);if("string"==typeof o&&-1===bj(o,r)&&-1===bj(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=MP(o);s||(o=dL(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=pj(i,a);if(null===d)break;if(mj(f,d),!l)break;""===dL(d[0])&&(i.lastIndex=oj(a,v_(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=dL((d=f[g])[0]),m=vj(gj(c_(d.index),a.length),0),b=[],E=1;E<d.length;E++)mj(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=yj([y],b,m,a);void 0!==w&&mj(S,w);var C=dL(YL(o,void 0,S))}else C=fj(y,a,m,b,w,o);m>=v&&(h+=Ej(a,v,m)+C,v=m+y.length)}return h+Ej(a,v)}]}),!!gP((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!wj||Sj);var Cj=SR("unscopables"),Dj=Array.prototype;null==Dj[Cj]&&LR.f(Dj,Cj,{configurable:!0,value:TL(null)});var Aj=function(e){Dj[Cj][e]=!0},xj=iL.find,Oj=!0;"find"in[]&&Array(1).find((function(){Oj=!1})),L_({target:"Array",proto:!0,forced:Oj},{find:function(e){return xj(this,e,arguments.length>1?arguments[1]:void 0)}}),Aj("find");var Tj=SR("match"),Nj=function(e){var t;return zP(e)&&(void 0!==(t=e[Tj])?!!t:"RegExp"==IP(e))},kj=vP.TypeError,Bj=SR("species"),Ij=function(e,t,n){var r=AR(t);r in e?LR.f(e,r,DP(0,n)):e[r]=n},Fj=vP.Array,Pj=Math.max,Rj=function(e,t,n){for(var r=g_(e),o=p_(t,r),i=p_(void 0===n?r:n,r),a=Fj(Pj(i-o,0)),u=0;o<i;o++,u++)Ij(a,u,e[o]);return a.length=u,a},_j=yL.UNSUPPORTED_Y,Lj=Math.min,jj=[].push,Mj=NP(/./.exec),zj=NP(jj),Hj=NP("".slice);JL("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=dL(LP(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!Nj(e))return bP(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=bP(VL,f,r))&&!((a=f.lastIndex)>c&&(zj(s,Hj(r,c,i.index)),i.length>1&&i.index<r.length&&YL(jj,s,Rj(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&Mj(f,"")||zj(s,""):zj(s,Hj(r,c)),s.length>o?Rj(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:bP(t,this,e,n)}:t,[function(t,n){var o=LP(this),i=null==t?void 0:oR(t,e);return i?bP(i,t,o,n):bP(r,dL(o),t,n)},function(e,o){var i=PR(this),a=dL(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=PR(e).constructor;return void 0===r||null==(n=PR(r)[Bj])?t:function(e){if(Q_(e))return e;throw kj(tR(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(_j?"g":"y"),f=new s(_j?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===pj(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=_j?0:h;var g,y=pj(f,_j?Hj(a,h):a);if(null===y||(g=Lj(v_(f.lastIndex+(_j?h:0)),a.length))===p)h=oj(a,h,l);else{if(zj(v,Hj(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(zj(v,y[m]),v.length===d)return v;h=p=g}}return zj(v,Hj(a,p)),v}]}),!!gP((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_j);var Uj="\t\n\v\f\r \u2028\u2029\ufeff",$j=NP("".replace),Vj="["+Uj+"]",Gj=RegExp("^"+Vj+Vj+"*"),Wj=RegExp(Vj+Vj+"*$"),qj=function(e){return function(t){var n=dL(LP(t));return 1&e&&(n=$j(n,Gj,"")),2&e&&(n=$j(n,Wj,"")),n}},Kj={start:qj(1),end:qj(2),trim:qj(3)},Yj=a_.PROPER,Xj=Kj.trim;function Zj(e){return 0===Mp("<div>"+e+"</div>").children().filter((function(e){return"BR"!==e.tagName})).length}function Jj(e){return 0===e.length?"":e[0].outerHTML}function Qj(e){return e.length?e[0].tagName.toLowerCase():""}function eM(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");u[0].trim()===t&&(n=u[1].trim())}}return n}L_({target:"String",proto:!0,forced:("trim",gP((function(){return!!Uj.trim()||"
"!=="
".trim()||Yj&&"trim"!==Uj.trim.name})))},{trim:function(){return Xj(this)}}),L_({global:!0},{globalThis:vP}),eh&&(Mp.fn.css=eh),ah&&(Mp.fn.append=ah),uh&&(Mp.fn.prepend=uh),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),Up&&(Mp.fn.hasClass=Up),qp&&(Mp.fn.on=qp),Kp&&(Mp.fn.off=Kp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Vp&&(Mp.fn.removeAttr=Vp),Jp&&(Mp.fn.hide=Jp),Qp&&(Mp.fn.show=Qp),lh&&(Mp.fn.parents=lh),Gp&&(Mp.fn.dataset=Gp),Wp&&(Mp.fn.val=Wp),oh&&(Mp.fn.text=oh),rh&&(Mp.fn.html=rh),fh&&(Mp.fn.children=fh),dh&&(Mp.fn.remove=dh),ch&&(Mp.fn.find=ch),Yp&&(Mp.fn.width=Yp),Xp&&(Mp.fn.height=Xp),nh&&(Mp.fn.filter=nh),ph&&(Mp.fn.empty=ph);var tM={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},nM=function(e,t){return nM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},nM(e,t)};function rM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}nM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oM=function(){return oM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oM.apply(this,arguments)};function iM(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function aM(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function uM(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function lM(e){var t=sM(Nf.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Cf.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Rf.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!ed.isText(o[0])&&(md.setNodes(e,{type:"paragraph"}),!0)}"function"==typeof SuppressedError&&SuppressedError;var cM={renderElems:[lP],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return""===t?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[tM],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){lM(r)||t(e)},r.deleteForward=function(e){lM(r)||n(e)},r}},fM=/"/g,dM=NP("".replace),pM=function(e,t,n,r){var o=dL(LP(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+dM(dL(r),fM,""")+'"'),i+">"+o+"</"+t+">"},hM=function(e){return gP((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};function vM(e,t){var n=t,r=e,o=r.bold,i=r.italic,a=r.underline;return o&&(n="<strong>"+n+"</strong>"),r.code&&(n="<code>"+n+"</code>"),i&&(n="<em>"+n+"</em>"),a&&(n="<u>"+n+"</u>"),r.through&&(n="<s>"+n+"</s>"),r.sub&&(n="<sub>"+n+"</sub>"),r.sup&&(n="<sup>"+n+"</sup>"),n}function gM(e,t){return 0!==e.length&&(!!e[0].matches(t)||e.find(t).length>0)}L_({target:"String",proto:!0,forced:hM("bold")},{bold:function(){return pM(this,"b","","")}}),L_({target:"String",proto:!0,forced:hM("italics")},{italics:function(){return pM(this,"i","","")}}),L_({target:"String",proto:!0,forced:hM("sub")},{sub:function(){return pM(this,"sub","","")}}),L_({target:"String",proto:!0,forced:hM("sup")},{sup:function(){return pM(this,"sup","","")}});var yM={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},mM=TR("span").classList,bM=mM&&mM.constructor&&mM.constructor.prototype,EM=bM===Object.prototype?void 0:bM,wM=function(e,t){var n=[][e];return!!n&&gP((function(){n.call(null,t||function(){throw 1},1)}))},SM=iL.forEach,CM=wM("forEach")?[].forEach:function(e){return SM(this,e,arguments.length>1?arguments[1]:void 0)},DM=function(e){if(e&&e.forEach!==CM)try{jR(e,"forEach",CM)}catch(t){e.forEach=CM}};for(var AM in yM)yM[AM]&&DM(vP[AM]&&vP[AM].prototype);function xM(e,t){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===QO.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function OM(e,t){Object.keys(t).forEach((function(t){"text"!==t&&Nf.removeMark(e,t)}))}DM(EM),L_({target:"Object",stat:!0,forced:gP((function(){mL(1)}))},{keys:function(e){return mL(fR(e))}});var TM=function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n?n[t]:!!sM(Nf.nodes(e,{match:function(e){return!0===e[t]}}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return xM(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark,r=this.marksNeedToRemove;t?e.removeMark(n):(e.addMark(n,!0),r&&r.forEach((function(t){return e.removeMark(t)})))},e}(),NM='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',kM='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',BM='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',IM='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',FM='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',PM='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',RM='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',_M='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',LM='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',jM='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',MM='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',zM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',HM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',UM='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',$M='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',VM='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',GM='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',WM='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',qM='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',KM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=UF("textStyle.bold"),t.iconSvg=NM,t.hotkey="mod+b",t}return rM(t,e),t}(TM),YM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=UF("textStyle.code"),t.iconSvg=FM,t.hotkey="mod+e",t}return rM(t,e),t}(TM),XM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=UF("textStyle.italic"),t.iconSvg=BM,t.hotkey="mod+i",t}return rM(t,e),t}(TM),ZM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=UF("textStyle.through"),t.iconSvg=IM,t.hotkey="mod+shift+x",t}return rM(t,e),t}(TM),JM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=UF("textStyle.underline"),t.iconSvg=kM,t.hotkey="mod+u",t}return rM(t,e),t}(TM),QM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.marksNeedToRemove=["sup"],t.title=UF("textStyle.sub"),t.iconSvg=qM,t.hotkey="",t}return rM(t,e),t}(TM),ez=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.marksNeedToRemove=["sub"],t.title=UF("textStyle.sup"),t.iconSvg=WM,t.hotkey="",t}return rM(t,e),t}(TM),tz=function(){function e(){this.title=UF("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return xM(e)},e.prototype.exec=function(e,t){var n,r,o=Nf.nodes(e,{match:function(e){return ed.isText(e)},universal:!0});try{for(var i=uM(o),a=i.next();!a.done;a=i.next())OM(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),nz={renderStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,u=n.through,s=n.sub,l=n.sup,c=t;return r&&(c=Fv("strong",null,c)),a&&(c=Fv("code",null,c)),o&&(c=Fv("em",null,c)),i&&(c=Fv("u",null,c)),u&&(c=Fv("s",null,c)),s&&(c=Fv("sub",null,c)),l&&(c=Fv("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new KM}},{key:"underline",factory:function(){return new JM}},{key:"italic",factory:function(){return new XM}},{key:"through",factory:function(){return new ZM}},{key:"code",factory:function(){return new YM}},{key:"sub",factory:function(){return new QM}},{key:"sup",factory:function(){return new ez}},{key:"clearStyle",factory:function(){return new tz}}],styleToHtml:function(e,t){if(!ed.isText(e))return t;if(Zj(t))return vM(e,t);var n=Mp(t);if("br"===Qj(n))return vM(e,"<br>");var r=n.html();return r=vM(e,r),n.html(r),Jj(n)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t;return gM(r,"b,strong")&&(o.bold=!0),gM(r,"i,em")&&(o.italic=!0),gM(r,"u")&&(o.underline=!0),gM(r,"s,strike")&&(o.through=!0),gM(r,"sub")&&(o.sub=!0),gM(r,"sup")&&(o.sup=!0),gM(r,"code")&&(o.code=!0),o}};function rz(e){return function(t,n,r){return Fv("h"+e,null,n)}}var oz={type:"header1",renderElem:rz(1)},iz={type:"header2",renderElem:rz(2)},az={type:"header3",renderElem:rz(3)},uz={type:"header4",renderElem:rz(4)},sz={type:"header5",renderElem:rz(5)},lz=a_.PROPER,cz=RegExp.prototype,fz=cz.toString,dz=NP(pL),pz=gP((function(){return"/a/b"!=fz.call({source:"a",flags:"b"})})),hz=lz&&"toString"!=fz.name;(pz||hz)&&u_(RegExp.prototype,"toString",(function(){var e=PR(this),t=dL(e.source),n=e.flags;return"/"+t+"/"+dL(void 0===n&&$P(cz,e)&&!("flags"in cz)?dz(e):n)}),{unsafe:!0});var vz,gz=vP.TypeError,yz=function(e){if(Nj(e))throw gz("The method doesn't accept regular expressions");return e},mz=SR("match"),bz=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[mz]=!1,"/./"[e](t)}catch(e){}}return!1},Ez=BR.f,wz=NP("".startsWith),Sz=NP("".slice),Cz=Math.min,Dz=bz("startsWith");function Az(e){var t=sM(Nf.nodes(e,{match:function(e){return QO.getNodeType(e).startsWith("header")},universal:!0}),1),n=t[0];if(null==n)return"paragraph";var r=sM(n,1)[0];return QO.getNodeType(r)}function xz(e){return null==e.selection||!sM(Nf.nodes(e,{match:function(e){var t=QO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function Oz(e,t){t&&md.setNodes(e,{type:t})}L_({target:"String",proto:!0,forced:!(!Dz&&(vz=Ez(String.prototype,"startsWith"),vz&&!vz.writable)||Dz)},{startsWith:function(e){var t=dL(LP(this));yz(e);var n=v_(Cz(arguments.length>1?arguments[1]:void 0,t.length)),r=dL(e);return wz?wz(t,r,n):Sz(t,n,n+r.length)===r}});var Tz=function(){function e(){this.title=UF("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:UF("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return Az(e)},e.prototype.isDisabled=function(e){return xz(e)},e.prototype.exec=function(e,t){Oz(e,t.toString())},e}(),Nz=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return Az(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return xz(e)},e.prototype.exec=function(e,t){var n=this.type;Oz(e,t===n?"paragraph":n)},e}(),kz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return rM(t,e),t}(Nz),Bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return rM(t,e),t}(Nz),Iz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return rM(t,e),t}(Nz),Fz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return rM(t,e),t}(Nz),Pz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return rM(t,e),t}(Nz),Rz={key:"headerSelect",factory:function(){return new Tz}},_z={key:"header1",factory:function(){return new kz}},Lz={key:"header2",factory:function(){return new Bz}},jz={key:"header3",factory:function(){return new Iz}},Mz={key:"header4",factory:function(){return new Fz}},zz={key:"header5",factory:function(){return new Pz}};function Hz(e){return function(t,n){return"<h"+e+">"+n+"</h"+e+">"}}function Uz(e){return function(t,n,r){var o=Mp(t);return 0===(n=n.filter((function(e){return!!ed.isText(e)||!!r.isInline(e)}))).length&&(n=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:n}}}var $z={renderElems:[oz,iz,az,uz,sz],elemsToHtml:[{type:"header1",elemToHtml:Hz(1)},{type:"header2",elemToHtml:Hz(2)},{type:"header3",elemToHtml:Hz(3)},{type:"header4",elemToHtml:Hz(4)},{type:"header5",elemToHtml:Hz(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:Uz(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:Uz(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:Uz(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:Uz(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:Uz(5)}],menus:[Rz,_z,Lz,jz,Mz,zz],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=sM(Nf.nodes(n,{match:function(e){return QO.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&QO.isSelectionAtLineEnd(e,r[1])?md.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},Vz=Object.assign,Gz=Object.defineProperty,Wz=NP([].concat),qz=!Vz||gP((function(){if(yP&&1!==Vz({b:1},Vz(Gz({},"a",{enumerable:!0,get:function(){Gz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Vz({},e)[n]||mL(Vz({},t)).join("")!=r}))?function(e,t){for(var n=fR(e),r=arguments.length,o=1,i=A_.f,a=CP.f;r>o;)for(var u,s=RP(arguments[o++]),l=i?Wz(mL(s),i(s)):mL(s),c=l.length,f=0;c>f;)u=l[f++],yP&&!bP(a,s,u)||(n[u]=s[u]);return n}:Vz;function Kz(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}L_({target:"Object",stat:!0,forced:Object.assign!==qz},{assign:qz});var Yz={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==Qj(t))return e;var n=t.attr("color")||"";return n&&(t.removeAttr("color"),t.css("color",n)),t[0]}},Xz=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===QO.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Mp('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",(function(n){var r=n.target;if(null!=r&&(n.preventDefault(),null!=e.selection)){var o=Mp(r).attr("data-value");"0"===o?Nf.removeMark(e,t):Nf.addMark(e,t,o)}})),this.$content=n}var r=this.$content;if(null==r)return document.createElement("ul");r.empty();var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Mp('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Mp('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=UF("color.default")),"bgColor"===t&&(a=UF("color.clear"));var u=Mp('\n <li data-value="0" class="clear">\n <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n '+a+"\n </li>\n ");return r.prepend(u),r[0]},e}(),Zz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("color.color"),t.iconSvg=_M,t.mark="color",t}return rM(t,e),t}(Xz),Jz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("color.bgColor"),t.iconSvg=LM,t.mark="bgColor",t}return rM(t,e),t}(Xz),Qz=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],eH={renderStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&Kz(i,{color:r}),o&&Kz(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.color,i=r.bgColor;return o||i?((Zj(t)||"span"!==Qj(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("color",o),i&&n.css("background-color",i),Jj(n)):t},preParseHtml:[Yz],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=eM(r,"color");i&&(o.color=i);var a=eM(r,"background-color");return a||(a=eM(r,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new Zz},config:{colors:Qz}},{key:"bgColor",factory:function(){return new Jz},config:{colors:Qz}}]},tH=/^(?:\w+:)?\/\/(\S+)$/,nH=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,rH=/^[^\s\.]+\.\S{2,}$/,oH=m_.includes;L_({target:"Array",proto:!0},{includes:function(e){return oH(this,e,arguments.length>1?arguments[1]:void 0)}}),Aj("includes");var iH=NP([].slice),aH=uL("slice"),uH=SR("species"),sH=vP.Array,lH=Math.max;function cH(e){return void 0===e&&(e="r"),e+"-"+jh()}function fH(e){return e.replace(/</g,"<").replace(/>/g,">")}function dH(e,t,n,r){return iM(this,void 0,void 0,(function(){var o,i;return aM(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function pH(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseLinkUrl)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function hH(e){return null==e.selection||!!QO.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function vH(e,t){return{type:"link",url:fH(e),children:t?[{text:t}]:[]}}function gH(e,t,n){return iM(this,void 0,void 0,(function(){var r,o,i,a,u;return aM(this,(function(s){switch(s.label){case 0:return n?(t||(t=n),e.restoreSelection(),hH(e)?[2]:[4,dH("insertLink",e,t,n)]):[2];case 1:return s.sent()?[4,pH("insertLink",e,n)]:[2];case 2:if(r=s.sent(),null==(o=e.selection))return[2];if(qf.isCollapsed(o)){if((a=QO.getLeftLengthOfMaxLength(e))<=0)return[2];e.insertText(" "),a<t.length+1&&(t=t.slice(0,a-1)),u=vH(r,t),md.insertNodes(e,u),e.insertFragment([{text:" "}])}else if((i=Nf.string(e,o))!==t){if((a=QO.getLeftLengthOfMaxLength(e))<=0)return[2];a<i.length-t.length&&(t=t.slice(0,a)),e.deleteFragment(),u=vH(r,t),md.insertNodes(e,u)}else u=vH(r),md.wrapNodes(e,u,{split:!0}),md.collapse(e,{edge:"end"});return[2]}}))}))}L_({target:"Array",proto:!0,forced:!aH},{slice:function(e,t){var n,r,o,i=jP(this),a=g_(i),u=p_(e,a),s=p_(void 0===t?a:t,a);if(M_(i)&&(n=i.constructor,(Q_(n)&&(n===sH||M_(n.prototype))||zP(n)&&null===(n=n[uH]))&&(n=void 0),n===sH||void 0===n))return iH(i,u,s);for(r=new(void 0===n?sH:n)(lH(s-u,0)),o=0;u<s;u++,o++)u in i&&Ij(r,o,i[u]);return r.length=o,r}});var yH={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return Fv("a",{href:o,target:void 0===i?"_blank":i},t)}},mH={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"link",url:r.attr("href")||"",target:r.attr("target")||"",children:t}}};function bH(){return cH("w-e-insert-link")}var EH=function(){function e(){this.title=UF("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=bH(),this.urlInputId=bH(),this.buttonId=bH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return hH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=sM(CI(UF("link.text"),r),2),u=a[0],s=Mp(a[1]),l=sM(CI(UF("link.url"),o),2),c=l[0],f=Mp(l[1]),d=sM(AI(i,UF("common.ok")),1)[0];if(null==this.$content){var p=Mp("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=p.find("#"+r).val(),i=p.find("#"+o).val();gH(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.empty(),h.append(u),h.append(c),h.append(d),null==t||qf.isCollapsed(t))s.val("");else{var v=Nf.string(e,t);s.val(v)}return f.val(""),setTimeout((function(){s.focus()})),h[0]},e}();function wH(){return cH("w-e-update-link")}var SH=function(){function e(){this.title=UF("link.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=wH(),this.buttonId=wH()}return e.prototype.getSelectedLinkElem=function(e){var t=QO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return QO.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=sM(CI(UF("link.url"),t),2),o=r[0],i=Mp(r[1]),a=sM(AI(n,UF("common.ok")),1)[0];if(null==this.$content){var u=Mp("<div></div>");u.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=QO.getSelectedNodeByType(e,"link"),o=r?Rf.string(r):"",i=u.find("#"+t).val();!function(e,t,n){iM(this,void 0,void 0,(function(){var r,o;return aM(this,(function(i){switch(i.label){case 0:return n?[4,dH("editLink",e,t,n)]:[2];case 1:return i.sent()?[4,pH("editLink",e,n)]:[2];case 2:return r=i.sent(),o={url:fH(r)},md.setNodes(e,o,{match:function(e){return QO.checkNodeType(e,"link")}}),[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=u}var s=this.$content;s.empty(),s.append(o),s.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){i.focus()})),s[0]},e}(),CH=function(){function e(){this.title=UF("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==QO.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.unwrapNodes(e,{match:function(e){return QO.checkNodeType(e,"link")}})},e}(),DH=function(){function e(){this.title=UF("link.view"),this.iconSvg=RM,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=QO.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),AH={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},xH={renderElems:[yH],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var n=e,r=n.url,o=n.target;return'<a href="'+r+'" target="'+(void 0===o?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[mH],menus:[{key:"insertLink",factory:function(){return new EH},config:AH},{key:"editLink",factory:function(){return new SH},config:AH},{key:"unLink",factory:function(){return new CH}},{key:"viewLink",factory:function(){return new DH}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(e){return"link"===e.type||t(e)},o.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(tH);if(!t)return!1;var n=t[1];return!(!n||!nH.test(n)&&!rH.test(n))}(t)){if(!hH(o)){var r=o.selection;if(null!=r){var i=Nf.string(o,r);gH(o,i,t)}}}else n(e)},o.normalizeNode=function(e){var t=sM(e,2),n=t[0],i=t[1];return"link"!==QO.getNodeType(n)?r([n,i]):""===Rf.string(n)?md.removeNodes(o,{at:i}):r([n,i])},o}},OH=NP(1..valueOf),TH=vP.RangeError,NH=vP.RangeError,kH=vP.String,BH=Math.floor,IH=NP((function(e){var t=dL(LP(this)),n="",r=c_(e);if(r<0||r==1/0)throw TH("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),FH=NP("".slice),PH=NP(1..toFixed),RH=function(e,t,n){return 0===t?n:t%2==1?RH(e,t-1,n*e):RH(e*e,t/2,n)},_H=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=BH(o/1e7)},LH=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=BH(r/t),r=r%t*1e7},jH=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=kH(e[t]);n=""===n?r:n+IH("0",7-r.length)+r}return n};function MH(e,t){return"w-e-image-container-"+QO.findKey(e,t).id}L_({target:"Number",proto:!0,forced:gP((function(){return"0.000"!==PH(8e-5,3)||"1"!==PH(.9,0)||"1.25"!==PH(1.255,2)||"1000000000000000128"!==PH(0xde0b6b3a7640080,0)}))||!gP((function(){PH({})}))},{toFixed:function(e){var t,n,r,o,i=OH(this),a=c_(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw NH("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return kH(i);if(i<0&&(s="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*RH(2,69,1))-69)<0?i*RH(2,-t,1):i/RH(2,t,1),n*=4503599627370496,(t=52-t)>0){for(_H(u,0,n),r=a;r>=7;)_H(u,1e7,0),r-=7;for(_H(u,RH(10,r,1),0),r=t-1;r>=23;)LH(u,1<<23),r-=23;LH(u,1<<r),_H(u,1,1),LH(u,2),l=jH(u)}else _H(u,0,n),_H(u,1<<-t,0),l=jH(u)+IH("0",a);return a>0?s+((o=l.length)<=a?"0."+IH("0",a-o)+l:FH(l,0,o-a)+"."+FH(l,o-a)):s+l}});var zH={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,u=r.href,s=void 0===u?"":u,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,v=QO.isNodeSelected(n,e),g={maxWidth:"100%"};d&&(g.width="100%"),h&&(g.height="100%");var y=Fv("img",{style:g,src:o,alt:a,"data-href":s}),m=n.isDisabled();return v&&!m?function(e,t,n,r){var o=Mp("body"),i=MH(e,t),a=r.width;r.height;var u=0,s=0,l=0,c=0,f=!1,d=null;function p(t,n){d=function(){var e=Mp("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t,c=n;var r=d.find("img");if(0===r.length)throw new Error("Cannot find image elem");s=r.width(),l=r.height(),o.on("mousemove",h),o.on("mouseup",v);var a=QO.getHoverbar(e);a&&a.hideAndClean()}var h=ev((function(e){e.preventDefault();var t=e.clientX,n=s+(f?u-t:t-u);n>c-6||null!=d&&(n<=15||l*(n/s)<=15||d.css("width",n+"px"))}),100);function v(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i={style:oM(oM({},t.style),{width:r+"px"})};md.setNodes(e,i,{at:QO.findPath(e,t)}),o.off("mouseup",v)}}var g={};return a&&(g.width=a),Fv("div",{id:i,style:g,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(n){var r=Mp(n.target);if(r.hasClass("w-e-image-dragger")){n.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(f=!0);var o=QO.getParentNode(e,t);if(null!=o){var i=QO.toDOMNode(e,o),a=i.getBoundingClientRect(),u=window.getComputedStyle(i),s=parseFloat(u.paddingLeft),l=parseFloat(u.paddingRight),c=parseFloat(u.borderLeftWidth),d=parseFloat(u.borderRightWidth);p(n.clientX,a.width-s-l-c-d)}}}}},n,Fv("div",{className:"w-e-image-dragger left-top"}),Fv("div",{className:"w-e-image-dragger right-top"}),Fv("div",{className:"w-e-image-dragger left-bottom"}),Fv("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i={};return o&&(i.width=o),Fv("div",{id:MH(e,t),style:i,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},HH={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e),o=r.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:o,style:{width:eM(r,"width"),height:eM(r,"height")},width:r.attr("width")||"",height:r.attr("height")||"",children:[{text:""}]}}};function UH(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),iM(this,void 0,void 0,(function(){var i,a;return aM(this,(function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=u.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];u.label=2;case 2:return[2,!0]}}))}))}function $H(e,t,n){return iM(this,void 0,void 0,(function(){var r;return aM(this,(function(o){switch(o.label){case 0:return(r=t.getMenuConfig(e).parseImageSrc)?[4,r(n)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,n]}}))}))}function VH(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),iM(this,void 0,void 0,(function(){var o,i,a;return aM(this,(function(u){switch(u.label){case 0:return[4,UH("insertImage",e,t,n,r)];case 1:return u.sent()?[4,$H("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:fH(o),href:r,alt:n,style:{},children:[{text:""}]},null===e.selection&&e.restoreSelection(),QO.getSelectedNodeByType(e,"image")&&e.move(1),GH(e)||(md.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}}))}))}function GH(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!sM(Nf.nodes(e,{match:function(t){var n=QO.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!Nf.isVoid(e,t)},universal:!0}),1)[0]}function WH(){return cH("w-e-insert-image")}var qH=function(){function e(){this.title=UF("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=WH(),this.altInputId=WH(),this.hrefInputId=WH(),this.buttonId=WH()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return GH(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=sM(CI(UF("image.src"),r),2),s=u[0],l=Mp(u[1]),c=sM(CI(UF("image.desc"),o),2),f=c[0],d=Mp(c[1]),p=sM(CI(UF("image.link"),i),2),h=p[0],v=Mp(p[1]),g=sM(AI(a,UF("common.ok")),1)[0];if(null==this.$content){var y=Mp("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=y.find("#"+r).val().trim(),u=y.find("#"+o).val().trim(),s=y.find("#"+i).val().trim();t.insertImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.empty(),m.append(s),m.append(f),m.append(h),m.append(g),l.val(""),d.val(""),v.val(""),setTimeout((function(){l.focus()})),m[0]},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||VH(e,t,n,r))},e}(),KH=function(){function e(){this.title=UF("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==QO.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{match:function(e){return QO.checkNodeType(e,"image")}})},e}();function YH(){return cH("w-e-edit-image")}var XH=function(){function e(){this.title=UF("image.edit"),this.iconSvg=PM,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=YH(),this.altInputId=YH(),this.hrefInputId=YH(),this.buttonId=YH()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return QO.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,u=this.getImageNode(e);if(null==u)throw new Error("Not found selected image node");var s=sM(CI(UF("image.src"),r),2),l=s[0],c=Mp(s[1]),f=sM(CI(UF("image.desc"),o),2),d=f[0],p=Mp(f[1]),h=sM(CI(UF("image.link"),i),2),v=h[0],g=Mp(h[1]),y=sM(AI(a,UF("common.ok")),1)[0];if(null==this.$content){var m=Mp("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=m.find("#"+r).val(),u=m.find("#"+o).val(),s=m.find("#"+i).val();t.updateImage(e,a,u,s),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.empty(),b.append(l),b.append(d),b.append(v),b.append(y);var E=u,w=E.src,S=E.alt,C=void 0===S?"":S,D=E.href,A=void 0===D?"":D;return c.val(w),p.val(C),g.val(A),setTimeout((function(){c.focus()})),b[0]},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),iM(this,void 0,void 0,(function(){var i,a,u,s,l,c;return aM(this,(function(f){switch(f.label){case 0:return[4,UH("editImage",e,t,n,r)];case 1:return f.sent()?[4,$H("editImage",e,t)]:[2];case 2:return i=f.sent(),null==(a=QO.getSelectedNodeByType(e,"image"))||(u=a.style,s={src:i,alt:n,href:r,style:oM(oM({},void 0===u?{}:u),o)},md.setNodes(e,s,{match:function(e){return QO.checkNodeType(e,"image")}}),l=QO.getSelectedNodeByType(e,"image"),(c=e.getMenuConfig("editImage").onUpdatedImage)&&c(l)),[2]}}))}))}(e,t,n,r,o))},e}(),ZH=function(){function e(){this.title=UF("image.viewLink"),this.iconSvg=RM,this.tag="button"}return e.prototype.getValue=function(e){var t=QO.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),JH=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return QO.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=QO.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:oM(oM({},void 0===o?{}:o),{width:this.value,height:""})};md.setNodes(e,i,{match:function(e){return QO.checkNodeType(e,"image")}})}}},e}(),QH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return rM(t,e),t}(JH),eU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return rM(t,e),t}(JH),tU=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return rM(t,e),t}(JH);function nU(){return cH("w-e-insert-image")}var rU=function(){function e(){this.title=UF("image.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=nU(),this.heightInputId=nU(),this.buttonId=nU()}return e.prototype.getSelectedImageNode=function(e){return QO.getSelectedNodeByType(e,"image")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedImageNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=sM(CI(UF("image.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=sM(CI(UF("image.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=sM(AI(o,UF("image.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p=oM(oM({},f),{style:{width:s,height:l}});md.setNodes(e,p,{match:function(e){return QO.checkNodeType(e,"image")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedImageNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"auto":y,b=g.height,E=void 0===b?"auto":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}(),oU={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},iU={renderElems:[zH],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var n=e,r=n.src,o=n.alt,i=void 0===o?"":o,a=n.href,u=void 0===a?"":a,s=n.width,l=void 0===s?"":s,c=n.height,f=void 0===c?"":c,d=n.style,p=void 0===d?{}:d,h=p.width,v=void 0===h?"":h,g=p.height,y=void 0===g?"":g,m="";return v&&(m+="width: "+v+";"),y&&(m+="height: "+y+";"),'<img src="'+r+'" alt="'+i+'" data-href="'+u+'" width="'+l+'" height="'+f+'" style="'+m+'"/>'}}],parseElemsHtml:[HH],menus:[{key:"insertImage",factory:function(){return new qH},config:oU},{key:"deleteImage",factory:function(){return new KH}},{key:"editImage",factory:function(){return new XH},config:oU},{key:"viewImageLink",factory:function(){return new ZH}},{key:"imageWidth30",factory:function(){return new QH}},{key:"imageWidth50",factory:function(){return new eU}},{key:"imageWidth100",factory:function(){return new tU}},{key:"editorImageSizeMenu",factory:function(){return new rU}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid;e.insertNode;var r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},aU={type:"todo",renderElem:function(e,t,n){var r=!1;n.isDisabled()&&(r=!0);var o=Fv("div",{style:{margin:"5px 0"}},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Fv("input",{type:"checkbox",checked:e.checked,disabled:r,on:{change:function(t){var r=QO.findPath(n,e),o={checked:t.target.checked};md.setNodes(n,o,{at:r})}}})),Fv("span",null,t));return o}},uU=function(){function e(){this.title=UF("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!QO.getSelectedNodeByType(e,"todo")},e.prototype.isDisabled=function(e){return null==e.selection||!!QO.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","table","list-item"].includes(n)||void 0}))},e.prototype.exec=function(e,t){var n=this.isActive(e);md.setNodes(e,{type:n?"paragraph":"todo"})},e}(),sU={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=!1;return null!=r.find('input[type="checkbox"]').attr("checked")&&(o=!0),{type:"todo",checked:o,children:t}}},lU={renderElems:[aU],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=Mp(e).find("li"),n=Mp('<div data-w-e-type="todo"></div>'),r=t.find("input[type]");return n.append(r),t.children()[0].remove(),n[0].innerHTML=n[0].innerHTML+t[0].innerHTML,n[0]}}],parseElemsHtml:[sU],menus:[{key:"todo",factory:function(){return new uU}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&qf.isCollapsed(r)){var o=QO.getSelectedNodeByType(e,"todo");if(o&&0===Rf.string(o).length)return void md.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},n}},cU={type:"blockquote",renderElem:function(e,t,n){return Fv("blockquote",null,t)}},fU={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},dU=function(){function e(){this.title=UF("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!QO.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!sM(Nf.nodes(e,{match:function(e){var t=QO.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";md.setNodes(e,{type:n},{mode:"highest"})}},e}(),pU={renderElems:[cU],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[fU],menus:[{key:"blockquote",factory:function(){return new dU}}],editorPlugin:function(e){var t=e.insertBreak,n=e.insertText,r=e;return r.insertBreak=function(){var o=r.selection;if(null==o)return t();var i=sM(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=QO.findPath(e,a),s=Nf.end(e,u);if($f.equals(s,o.focus)){var l=Rf.string(a);if(l&&"\n"===l.slice(-1))return e.deleteBackward("character"),void md.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}n("\n")},r}},hU=function(){function e(){this.title=UF("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!sM(Nf.nodes(e,{match:function(t){return"pre"===QO.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Mp('<ul class="w-e-panel-content-emotion"></ul>');t.on("click","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Mp(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return document.createElement("ul");n.empty();var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Mp("<li>"+e+"</li>");n.append(t)})),n[0]},e}(),vU={menus:[{key:"emotion",factory:function(){return new hU},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},gU={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},yU={selector:"font",preParseHtml:function(e){var t=Mp(e);if("font"!==Qj(t))return e;var n=t.attr("size")||"";n&&(t.removeAttr("size"),t.css("font-size",gU[n]));var r=t.attr("face")||"";return r&&(t.removeAttr("face"),t.css("font-family",r)),t[0]}},mU=NP("".indexOf);L_({target:"String",proto:!0,forced:!bz("includes")},{includes:function(e){return!!~mU(dL(LP(this)),dL(yz(e)),arguments.length>1?arguments[1]:void 0)}});var bU,EU,wU=function(e){return e&&e.Math==Math&&e},SU=wU("object"==typeof globalThis&&globalThis)||wU("object"==typeof window&&window)||wU("object"==typeof self&&self)||wU("object"==typeof cP&&cP)||function(){return this}()||Function("return this")(),CU=Function.prototype,DU=CU.apply,AU=CU.bind,xU=CU.call,OU="object"==typeof Reflect&&Reflect.apply||(AU?xU.bind(DU):function(){return xU.apply(DU,arguments)}),TU=Function.prototype,NU=TU.bind,kU=TU.call,BU=NU&&NU.bind(kU),IU=NU?function(e){return e&&BU(kU,e)}:function(e){return e&&function(){return kU.apply(e,arguments)}},FU=function(e){return"function"==typeof e},PU=function(e){try{return!!e()}catch(e){return!0}},RU=!PU((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),_U=Function.prototype.call,LU=_U.bind?_U.bind(_U):function(){return _U.apply(_U,arguments)},jU={}.propertyIsEnumerable,MU=Object.getOwnPropertyDescriptor,zU=MU&&!jU.call({1:2},1)?function(e){var t=MU(this,e);return!!t&&t.enumerable}:jU,HU={f:zU},UU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$U=IU({}.toString),VU=IU("".slice),GU=function(e){return VU($U(e),8,-1)},WU=SU.Object,qU=IU("".split),KU=PU((function(){return!WU("z").propertyIsEnumerable(0)}))?function(e){return"String"==GU(e)?qU(e,""):WU(e)}:WU,YU=SU.TypeError,XU=function(e){if(null==e)throw YU("Can't call method on "+e);return e},ZU=function(e){return KU(XU(e))},JU=function(e){return"object"==typeof e?null!==e:FU(e)},QU={},e$=function(e){return FU(e)?e:void 0},t$=function(e,t){return arguments.length<2?e$(QU[e])||e$(SU[e]):QU[e]&&QU[e][t]||SU[e]&&SU[e][t]},n$=IU({}.isPrototypeOf),r$=t$("navigator","userAgent")||"",o$=SU.process,i$=SU.Deno,a$=o$&&o$.versions||i$&&i$.version,u$=a$&&a$.v8;u$&&(EU=(bU=u$.split("."))[0]>0&&bU[0]<4?1:+(bU[0]+bU[1])),!EU&&r$&&(!(bU=r$.match(/Edge\/(\d+)/))||bU[1]>=74)&&(bU=r$.match(/Chrome\/(\d+)/))&&(EU=+bU[1]);var s$=EU,l$=!!Object.getOwnPropertySymbols&&!PU((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s$&&s$<41})),c$=l$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,f$=SU.Object,d$=c$?function(e){return"symbol"==typeof e}:function(e){var t=t$("Symbol");return FU(t)&&n$(t.prototype,f$(e))},p$=SU.String,h$=SU.TypeError,v$=function(e){if(FU(e))return e;throw h$(function(e){try{return p$(e)}catch(e){return"Object"}}(e)+" is not a function")},g$=SU.TypeError,y$=Object.defineProperty,m$=SU["__core-js_shared__"]||function(e,t){try{y$(SU,e,{value:t,configurable:!0,writable:!0})}catch(n){SU[e]=t}return t}("__core-js_shared__",{}),b$=fP((function(e){(e.exports=function(e,t){return m$[e]||(m$[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),E$=SU.Object,w$=function(e){return E$(XU(e))},S$=IU({}.hasOwnProperty),C$=Object.hasOwn||function(e,t){return S$(w$(e),t)},D$=0,A$=Math.random(),x$=IU(1..toString),O$=function(e){return"Symbol("+(void 0===e?"":e)+")_"+x$(++D$+A$,36)},T$=b$("wks"),N$=SU.Symbol,k$=N$&&N$.for,B$=c$?N$:N$&&N$.withoutSetter||O$,I$=function(e){if(!C$(T$,e)||!l$&&"string"!=typeof T$[e]){var t="Symbol."+e;l$&&C$(N$,e)?T$[e]=N$[e]:T$[e]=c$&&k$?k$(t):B$(t)}return T$[e]},F$=SU.TypeError,P$=I$("toPrimitive"),R$=function(e){var t=function(e,t){if(!JU(e)||d$(e))return e;var n,r,o=null==(n=e[P$])?void 0:v$(n);if(o){if(void 0===t&&(t="default"),r=LU(o,e,t),!JU(r)||d$(r))return r;throw F$("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&FU(n=e.toString)&&!JU(r=LU(n,e)))return r;if(FU(n=e.valueOf)&&!JU(r=LU(n,e)))return r;if("string"!==t&&FU(n=e.toString)&&!JU(r=LU(n,e)))return r;throw g$("Can't convert object to primitive value")}(e,t)}(e,"string");return d$(t)?t:t+""},_$=SU.document,L$=JU(_$)&&JU(_$.createElement),j$=function(e){return L$?_$.createElement(e):{}},M$=!RU&&!PU((function(){return 7!=Object.defineProperty(j$("div"),"a",{get:function(){return 7}}).a})),z$=Object.getOwnPropertyDescriptor,H$={f:RU?z$:function(e,t){if(e=ZU(e),t=R$(t),M$)try{return z$(e,t)}catch(e){}if(C$(e,t))return UU(!LU(HU.f,e,t),e[t])}},U$=/#|\.prototype\./,$$=function(e,t){var n=G$[V$(e)];return n==q$||n!=W$&&(FU(t)?PU(t):!!t)},V$=$$.normalize=function(e){return String(e).replace(U$,".").toLowerCase()},G$=$$.data={},W$=$$.NATIVE="N",q$=$$.POLYFILL="P",K$=$$,Y$=IU(IU.bind),X$=function(e,t){return v$(e),void 0===t?e:Y$?Y$(e,t):function(){return e.apply(t,arguments)}},Z$=SU.String,J$=SU.TypeError,Q$=function(e){if(JU(e))return e;throw J$(Z$(e)+" is not an object")},eV=SU.TypeError,tV=Object.defineProperty,nV={f:RU?tV:function(e,t,n){if(Q$(e),t=R$(t),Q$(n),M$)try{return tV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw eV("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},rV=RU?function(e,t,n){return nV.f(e,t,UU(1,n))}:function(e,t,n){return e[t]=n,e},oV=H$.f,iV=function(e){var t=function(n,r,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,o)}return OU(e,this,arguments)};return t.prototype=e.prototype,t},aV=function(e,t){var n,r,o,i,a,u,s,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?SU:d?SU[c]:(SU[c]||{}).prototype,v=f?QU:QU[c]||rV(QU,c,{})[c],g=v.prototype;for(o in t)n=!K$(f?o:c+(d?".":"#")+o,e.forced)&&h&&C$(h,o),a=v[o],n&&(u=e.noTargetGet?(l=oV(h,o))&&l.value:h[o]),i=n&&u?u:t[o],n&&typeof a==typeof i||(s=e.bind&&n?X$(i,SU):e.wrap&&n?iV(i):p&&FU(i)?IU(i):i,(e.sham||i&&i.sham||a&&a.sham)&&rV(s,"sham",!0),rV(v,o,s),p&&(C$(QU,r=c+"Prototype")||rV(QU,r,{}),rV(QU[r],o,i),e.real&&g&&!g[o]&&rV(g,o,i)))},uV=Array.isArray||function(e){return"Array"==GU(e)},sV=Math.ceil,lV=Math.floor,cV=function(e){var t=+e;return t!=t||0===t?0:(t>0?lV:sV)(t)},fV=Math.min,dV=function(e){return(t=e.length)>0?fV(cV(t),9007199254740991):0;var t},pV=function(e,t,n){var r=R$(t);r in e?nV.f(e,r,UU(0,n)):e[r]=n},hV={};hV[I$("toStringTag")]="z";var vV="[object z]"===String(hV),gV=I$("toStringTag"),yV=SU.Object,mV="Arguments"==GU(function(){return arguments}()),bV=vV?GU:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yV(e),gV))?n:mV?GU(t):"Object"==(r=GU(t))&&FU(t.callee)?"Arguments":r},EV=IU(Function.toString);FU(m$.inspectSource)||(m$.inspectSource=function(e){return EV(e)});var wV=m$.inspectSource,SV=function(){},CV=[],DV=t$("Reflect","construct"),AV=/^\s*(?:class|function)\b/,xV=IU(AV.exec),OV=!AV.exec(SV),TV=function(e){if(!FU(e))return!1;try{return DV(SV,CV,e),!0}catch(e){return!1}},NV=!DV||PU((function(){var e;return TV(TV.call)||!TV(Object)||!TV((function(){e=!0}))||e}))?function(e){if(!FU(e))return!1;switch(bV(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return OV||!!xV(AV,wV(e))}:TV,kV=I$("species"),BV=SU.Array,IV=function(e,t){return new(function(e){var t;return uV(e)&&(t=e.constructor,(NV(t)&&(t===BV||uV(t.prototype))||JU(t)&&null===(t=t[kV]))&&(t=void 0)),void 0===t?BV:t}(e))(0===t?0:t)},FV=I$("species"),PV=I$("isConcatSpreadable"),RV=SU.TypeError,_V=s$>=51||!PU((function(){var e=[];return e[PV]=!1,e.concat()[0]!==e})),LV=s$>=51||!PU((function(){var e=[];return(e.constructor={})[FV]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),jV=function(e){if(!JU(e))return!1;var t=e[PV];return void 0!==t?!!t:uV(e)};aV({target:"Array",proto:!0,forced:!_V||!LV},{concat:function(e){var t,n,r,o,i,a=w$(this),u=IV(a,0),s=0;for(t=-1,r=arguments.length;t<r;t++)if(jV(i=-1===t?a:arguments[t])){if(s+(o=dV(i))>9007199254740991)throw RV("Maximum allowed index exceeded");for(n=0;n<o;n++,s++)n in i&&pV(u,s,i[n])}else{if(s>=9007199254740991)throw RV("Maximum allowed index exceeded");pV(u,s++,i)}return u.length=s,u}});var MV,zV=SU.String,HV=function(e){if("Symbol"===bV(e))throw TypeError("Cannot convert a Symbol value to a string");return zV(e)},UV=Math.max,$V=Math.min,VV=function(e,t){var n=cV(e);return n<0?UV(n+t,0):$V(n,t)},GV=function(e){return function(t,n,r){var o,i=ZU(t),a=dV(i),u=VV(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},WV={includes:GV(!0),indexOf:GV(!1)},qV={},KV=WV.indexOf,YV=IU([].push),XV=function(e,t){var n,r=ZU(e),o=0,i=[];for(n in r)!C$(qV,n)&&C$(r,n)&&YV(i,n);for(;t.length>o;)C$(r,n=t[o++])&&(~KV(i,n)||YV(i,n));return i},ZV=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],JV=Object.keys||function(e){return XV(e,ZV)},QV=RU?Object.defineProperties:function(e,t){Q$(e);for(var n,r=ZU(t),o=JV(t),i=o.length,a=0;i>a;)nV.f(e,n=o[a++],r[n]);return e},eG=t$("document","documentElement"),tG=b$("keys"),nG=function(e){return tG[e]||(tG[e]=O$(e))},rG=nG("IE_PROTO"),oG=function(){},iG=function(e){return"<script>"+e+"<\/script>"},aG=function(e){e.write(iG("")),e.close();var t=e.parentWindow.Object;return e=null,t},uG=function(){try{MV=new ActiveXObject("htmlfile")}catch(e){}var e,t;uG="undefined"!=typeof document?document.domain&&MV?aG(MV):((t=j$("iframe")).style.display="none",eG.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(iG("document.F=Object")),e.close(),e.F):aG(MV);for(var n=ZV.length;n--;)delete uG.prototype[ZV[n]];return uG()};qV[rG]=!0;var sG,lG,cG,fG=Object.create||function(e,t){var n;return null!==e?(oG.prototype=Q$(e),n=new oG,oG.prototype=null,n[rG]=e):n=uG(),void 0===t?n:QV(n,t)},dG=ZV.concat("length","prototype"),pG={f:Object.getOwnPropertyNames||function(e){return XV(e,dG)}},hG=SU.Array,vG=Math.max,gG=pG.f,yG="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mG={f:function(e){return yG&&"Window"==GU(e)?function(e){try{return gG(e)}catch(e){return function(e,t,n){for(var r=dV(e),o=VV(void 0,r),i=VV(r,r),a=hG(vG(i-o,0)),u=0;o<i;o++,u++)pV(a,u,e[o]);return a.length=u,a}(yG)}}(e):gG(ZU(e))}},bG={f:Object.getOwnPropertySymbols},EG=IU([].slice),wG=function(e,t,n,r){r&&r.enumerable?e[t]=n:rV(e,t,n)},SG={f:I$},CG=nV.f,DG=function(e){var t=QU.Symbol||(QU.Symbol={});C$(t,e)||CG(t,e,{value:SG.f(e)})},AG=vV?{}.toString:function(){return"[object "+bV(this)+"]"},xG=nV.f,OG=I$("toStringTag"),TG=function(e,t,n,r){if(e){var o=n?e:e.prototype;C$(o,OG)||xG(o,OG,{configurable:!0,value:t}),r&&!vV&&rV(o,"toString",AG)}},NG=SU.WeakMap,kG=FU(NG)&&/native code/.test(wV(NG)),BG=SU.TypeError,IG=SU.WeakMap;if(kG||m$.state){var FG=m$.state||(m$.state=new IG),PG=IU(FG.get),RG=IU(FG.has),_G=IU(FG.set);sG=function(e,t){if(RG(FG,e))throw new BG("Object already initialized");return t.facade=e,_G(FG,e,t),t},lG=function(e){return PG(FG,e)||{}},cG=function(e){return RG(FG,e)}}else{var LG=nG("state");qV[LG]=!0,sG=function(e,t){if(C$(e,LG))throw new BG("Object already initialized");return t.facade=e,rV(e,LG,t),t},lG=function(e){return C$(e,LG)?e[LG]:{}},cG=function(e){return C$(e,LG)}}var jG={set:sG,get:lG,has:cG,enforce:function(e){return cG(e)?lG(e):sG(e,{})},getterFor:function(e){return function(t){var n;if(!JU(t)||(n=lG(t)).type!==e)throw BG("Incompatible receiver, "+e+" required");return n}}},MG=IU([].push),zG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=w$(s),v=KU(h),g=X$(l,c),y=dV(v),m=0,b=f||IV,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:MG(E,d)}else switch(e){case 4:return!1;case 7:MG(E,d)}return i?-1:r||o?o:E}},HG=[zG(0),zG(1),zG(2),zG(3),zG(4),zG(5),zG(6),zG(7)][0],UG=nG("hidden"),$G=I$("toPrimitive"),VG=jG.set,GG=jG.getterFor("Symbol"),WG=Object.prototype,qG=SU.Symbol,KG=qG&&qG.prototype,YG=SU.TypeError,XG=SU.QObject,ZG=t$("JSON","stringify"),JG=H$.f,QG=nV.f,eW=mG.f,tW=HU.f,nW=IU([].push),rW=b$("symbols"),oW=b$("op-symbols"),iW=b$("string-to-symbol-registry"),aW=b$("symbol-to-string-registry"),uW=b$("wks"),sW=!XG||!XG.prototype||!XG.prototype.findChild,lW=RU&&PU((function(){return 7!=fG(QG({},"a",{get:function(){return QG(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=JG(WG,t);r&&delete WG[t],QG(e,t,n),r&&e!==WG&&QG(WG,t,r)}:QG,cW=function(e,t){var n=rW[e]=fG(KG);return VG(n,{type:"Symbol",tag:e,description:t}),RU||(n.description=t),n},fW=function(e,t,n){e===WG&&fW(oW,t,n),Q$(e);var r=R$(t);return Q$(n),C$(rW,r)?(n.enumerable?(C$(e,UG)&&e[UG][r]&&(e[UG][r]=!1),n=fG(n,{enumerable:UU(0,!1)})):(C$(e,UG)||QG(e,UG,UU(1,{})),e[UG][r]=!0),lW(e,r,n)):QG(e,r,n)},dW=function(e,t){Q$(e);var n=ZU(t),r=JV(n).concat(gW(n));return HG(r,(function(t){RU&&!LU(pW,n,t)||fW(e,t,n[t])})),e},pW=function(e){var t=R$(e),n=LU(tW,this,t);return!(this===WG&&C$(rW,t)&&!C$(oW,t))&&(!(n||!C$(this,t)||!C$(rW,t)||C$(this,UG)&&this[UG][t])||n)},hW=function(e,t){var n=ZU(e),r=R$(t);if(n!==WG||!C$(rW,r)||C$(oW,r)){var o=JG(n,r);return!o||!C$(rW,r)||C$(n,UG)&&n[UG][r]||(o.enumerable=!0),o}},vW=function(e){var t=eW(ZU(e)),n=[];return HG(t,(function(e){C$(rW,e)||C$(qV,e)||nW(n,e)})),n},gW=function(e){var t=e===WG,n=eW(t?oW:ZU(e)),r=[];return HG(n,(function(e){!C$(rW,e)||t&&!C$(WG,e)||nW(r,rW[e])})),r};if(l$||(KG=(qG=function(){if(n$(KG,this))throw YG("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?HV(arguments[0]):void 0,t=O$(e),n=function(e){this===WG&&LU(n,oW,e),C$(this,UG)&&C$(this[UG],t)&&(this[UG][t]=!1),lW(this,t,UU(1,e))};return RU&&sW&&lW(WG,t,{configurable:!0,set:n}),cW(t,e)}).prototype,wG(KG,"toString",(function(){return GG(this).tag})),wG(qG,"withoutSetter",(function(e){return cW(O$(e),e)})),HU.f=pW,nV.f=fW,H$.f=hW,pG.f=mG.f=vW,bG.f=gW,SG.f=function(e){return cW(I$(e),e)},RU&&QG(KG,"description",{configurable:!0,get:function(){return GG(this).description}})),aV({global:!0,wrap:!0,forced:!l$,sham:!l$},{Symbol:qG}),HG(JV(uW),(function(e){DG(e)})),aV({target:"Symbol",stat:!0,forced:!l$},{for:function(e){var t=HV(e);if(C$(iW,t))return iW[t];var n=qG(t);return iW[t]=n,aW[n]=t,n},keyFor:function(e){if(!d$(e))throw YG(e+" is not a symbol");if(C$(aW,e))return aW[e]},useSetter:function(){sW=!0},useSimple:function(){sW=!1}}),aV({target:"Object",stat:!0,forced:!l$,sham:!RU},{create:function(e,t){return void 0===t?fG(e):dW(fG(e),t)},defineProperty:fW,defineProperties:dW,getOwnPropertyDescriptor:hW}),aV({target:"Object",stat:!0,forced:!l$},{getOwnPropertyNames:vW,getOwnPropertySymbols:gW}),aV({target:"Object",stat:!0,forced:PU((function(){bG.f(1)}))},{getOwnPropertySymbols:function(e){return bG.f(w$(e))}}),ZG){var yW=!l$||PU((function(){var e=qG();return"[null]"!=ZG([e])||"{}"!=ZG({a:e})||"{}"!=ZG(Object(e))}));aV({target:"JSON",stat:!0,forced:yW},{stringify:function(e,t,n){var r=EG(arguments),o=t;if((JU(t)||void 0!==e)&&!d$(e))return uV(t)||(t=function(e,t){if(FU(o)&&(t=LU(o,this,e,t)),!d$(t))return t}),r[1]=t,OU(ZG,null,r)}})}if(!KG[$G]){var mW=KG.valueOf;wG(KG,$G,(function(e){return LU(mW,this)}))}TG(qG,"Symbol"),qV[UG]=!0,DG("asyncIterator"),DG("hasInstance"),DG("isConcatSpreadable"),DG("iterator"),DG("match"),DG("matchAll"),DG("replace"),DG("search"),DG("species"),DG("split"),DG("toPrimitive"),DG("toStringTag"),DG("unscopables"),TG(SU.JSON,"JSON",!0);var bW,EW,wW,SW=QU.Symbol,CW={},DW=Function.prototype,AW=RU&&Object.getOwnPropertyDescriptor,xW=C$(DW,"name"),OW={EXISTS:xW,PROPER:xW&&"something"===function(){}.name,CONFIGURABLE:xW&&(!RU||RU&&AW(DW,"name").configurable)},TW=!PU((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),NW=nG("IE_PROTO"),kW=SU.Object,BW=kW.prototype,IW=TW?kW.getPrototypeOf:function(e){var t=w$(e);if(C$(t,NW))return t[NW];var n=t.constructor;return FU(n)&&t instanceof n?n.prototype:t instanceof kW?BW:null},FW=I$("iterator"),PW=!1;[].keys&&("next"in(wW=[].keys())?(EW=IW(IW(wW)))!==Object.prototype&&(bW=EW):PW=!0);var RW=null==bW||PU((function(){var e={};return bW[FW].call(e)!==e}));bW=RW?{}:fG(bW),FU(bW[FW])||wG(bW,FW,(function(){return this}));var _W={IteratorPrototype:bW,BUGGY_SAFARI_ITERATORS:PW},LW=_W.IteratorPrototype,jW=function(){return this};SU.String,SU.TypeError,Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{IU(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch(e){}}();var MW=OW.PROPER,zW=_W.BUGGY_SAFARI_ITERATORS,HW=I$("iterator"),UW=function(){return this},$W=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=fG(LW,{next:UU(1,n)}),TG(e,o,!1,!0),CW[o]=jW}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!zW&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[HW]||p["@@iterator"]||o&&p[o],v=!zW&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=IW(g.call(new e)))!==Object.prototype&&u.next&&(TG(u,f,!0,!0),CW[f]=UW),MW&&"values"==o&&h&&"values"!==h.name&&(d=!0,v=function(){return LU(h,this)}),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(zW||d||!(l in p))&&wG(p,l,s[l]);else aV({target:t,proto:!0,forced:zW||d},s);return a&&p[HW]!==v&&wG(p,HW,v,{name:o}),CW[t]=v,s},VW=jG.set,GW=jG.getterFor("Array Iterator");$W(Array,"Array",(function(e,t){VW(this,{type:"Array Iterator",target:ZU(e),index:0,kind:t})}),(function(){var e=GW(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),CW.Arguments=CW.Array;var WW=I$("toStringTag");for(var qW in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var KW=SU[qW],YW=KW&&KW.prototype;YW&&bV(YW)!==WW&&rV(YW,WW,qW),CW[qW]=CW.Array}var XW=SW;DG("asyncDispose"),DG("dispose"),DG("matcher"),DG("metadata"),DG("observable"),DG("patternMatch"),DG("replaceAll");var ZW=XW,JW=IU("".charAt),QW=IU("".charCodeAt),eq=IU("".slice),tq=function(e){return function(t,n){var r,o,i=HV(XU(t)),a=cV(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=QW(i,a))<55296||r>56319||a+1===u||(o=QW(i,a+1))<56320||o>57343?e?JW(i,a):r:e?eq(i,a,a+2):o-56320+(r-55296<<10)+65536}},nq=(tq(!1),tq(!0)),rq=jG.set,oq=jG.getterFor("String Iterator");$W(String,"String",(function(e){rq(this,{type:"String Iterator",string:HV(e),index:0})}),(function(){var e,t=oq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=nq(n,r),t.index+=e.length,{value:e,done:!1})}));var iq=SG.f("iterator"),aq=fP((function(e){function t(n){return"function"==typeof ZW&&"symbol"==typeof iq?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof ZW&&e.constructor===ZW&&e!==ZW.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),uq=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(aq),sq=a_.EXISTS,lq=LR.f,cq=Function.prototype,fq=NP(cq.toString),dq=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,pq=NP(dq.exec);yP&&!sq&&lq(cq,"name",{configurable:!0,get:function(){try{return pq(dq,fq(this))[1]}catch(e){return""}}});var hq=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=Nf.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!sM(Nf.nodes(e,{match:function(t){return"pre"===QO.getNodeType(t)||!!Nf.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),vq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("fontSize.title"),t.iconSvg=jM,t.mark="fontSize",t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:UF("fontSize.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e});else if("object"===uq(e)){var n=e.name,r=e.value;t.push({text:n,value:r})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(hq),gq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("fontFamily.title"),t.iconSvg=MM,t.mark="fontFamily",t.selectPanelWidth=150,t}return rM(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:UF("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===uq(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(hq),yq={renderStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&Kz(i,{fontSize:r}),o&&Kz(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!ed.isText(e))return t;var n,r=e,o=r.fontSize,i=r.fontFamily;return o||i?((Zj(t)||"span"!==Qj(n=Mp(t)))&&(n=Mp("<span>"+t+"</span>")),o&&n.css("font-size",o),i&&n.css("font-family",i),Jj(n)):t},preParseHtml:[yU],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!ed.isText(t))return t;var o=t,i=n.getMenuConfig("fontSize").fontSizeList,a=void 0===i?[]:i,u=eM(r,"font-size"),s=a.find((function(e){return e.value&&e.value===u}))||a.includes(u);u&&s&&(o.fontSize=u);var l=n.getMenuConfig("fontFamily").fontFamilyList,c=void 0===l?[]:l,f=eM(r,"font-family").replace(/"/g,""),d=c.find((function(e){return e.value&&e.value===f}))||c.includes(f);return f&&d&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new vq},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new gq},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},mq={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=Mp(e),n=eM(t,"padding-left");return/\dem/.test(n)&&t.css("text-indent","2em"),/\dpx/.test(n)&&parseInt(n,10)%32==0&&t.css("text-indent","2em"),t[0]}},bq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=sM(Nf.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1),n=t[0];return null==n?"":sM(n,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=QO.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),Eq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("indent.decrease"),t.iconSvg=zM,t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){md.setNodes(e,{indent:null},{match:function(e){return Cf.isElement(e)}})},t}(bq),wq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("indent.increase"),t.iconSvg=HM,t.DEFAULT_INDENT_VALUE="2em",t}return rM(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!!t.indent},t.prototype.getIndentValue=function(e){var t=this.getMatchNode(e);if(!t)return this.DEFAULT_INDENT_VALUE;var n=t.children.filter(ed.isText)[0];if(!n||!n.fontSize)return this.DEFAULT_INDENT_VALUE;var r=n.fontSize,o=parseInt(n.fontSize);return""+2*o+r.replace(""+o,"")},t.prototype.exec=function(e,t){var n=this.getIndentValue(e);md.setNodes(e,{indent:n},{match:function(e){return Cf.isElement(e)},mode:"highest"})},t}(bq),Sq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent,r=t;return n&&Kz(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Mp(t);return r.css("text-indent",n),Jj(r)},preParseHtml:[mq],parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=eM(r,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new wq}},{key:"delIndent",factory:function(){return new Eq}}]},Cq=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=QO.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!QO.getSelectedElems(e).some((function(t){var n=t.type;return!(!Nf.isVoid(e,t)||!Nf.isBlock(e,t)||"video"===n)||!!["pre","code"].includes(n)||void 0}))},e}(),Dq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.left"),t.iconSvg=UM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"left"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Aq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.right"),t.iconSvg=$M,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"right"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),xq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.center"),t.iconSvg=VM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"center"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Oq=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=UF("justify.justify"),t.iconSvg=GM,t}return rM(t,e),t.prototype.exec=function(e,t){md.setNodes(e,{textAlign:"justify"},{match:function(t){return Cf.isElement(t)&&!e.isInline(t)}})},t}(Cq),Tq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign,r=t;return n&&Kz(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Mp(t);return r.css("text-align",n),Jj(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=eM(r,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new Dq}},{key:"justifyRight",factory:function(){return new Aq}},{key:"justifyCenter",factory:function(){return new xq}},{key:"justifyJustify",factory:function(){return new Oq}}]},Nq=function(){function e(){this.title=UF("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:UF("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=sM(Nf.nodes(e,{match:function(e){var t=QO.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Cf.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){md.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),kq={renderStyle:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight,r=t;return n&&Kz(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!Cf.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Mp(t);return r.css("line-height",n),Jj(r)},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;var o=t,i=n.getMenuConfig("lineHeight").lineHeightList,a=void 0===i?[]:i,u=eM(r,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new Nq},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Bq=function(){function e(){this.title=UF("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),Iq=function(){function e(){this.title=UF("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),Fq={menus:[{key:"redo",factory:function(){return new Bq}},{key:"undo",factory:function(){return new Iq}}]},Pq={type:"divider",renderElem:function(e,t,n){return pv("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:QO.isNodeSelected(n,e)?"true":""},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[pv("hr")])}},Rq=function(){function e(){this.title=UF("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!QO.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=QO.getNodeType(t);return"table"===n||"pre"===n||void 0}))},e.prototype.exec=function(e,t){md.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),_q={renderElems:[Pq],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Rq}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=sM(e,2),o=t[0],i=t[1];if("divider"!==QO.getNodeType(o))return n([o,i]);QO.isLastNode(r,o)&&md.insertNodes(r,QO.genEmptyParagraph(),{at:[i[0]+1]})},r}},Lq=iL.map;L_({target:"Array",proto:!0,forced:!uL("map")},{map:function(e){return Lq(this,e,arguments.length>1?arguments[1]:void 0)}});var jq=NP([].join),Mq=RP!=Object,zq=wM("join",",");L_({target:"Array",proto:!0,forced:Mq||!zq},{join:function(e){return jq(jP(this),void 0===e?",":e)}});var Hq=function(){function e(){this.title=UF("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=QO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=QO.getParentNode(e,t);return null==n||"pre"!==QO.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){if(null==e.selection)return!0;var t=QO.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=QO.getNodeType(e);if("pre"===t||"paragraph"===t)return!0}))},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Rf.string(t);md.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));md.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=Nf.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=uM(i),u=a.next();!u.done;u=a.next()){var s=sM(u.value,1)[0];s&&o.push(Rf.string(s))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}md.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};md.insertNodes(e,l,{mode:"highest"})},e}(),Uq={key:"codeBlock",factory:function(){return new Hq}};L_({target:"String",proto:!0,forced:hM("anchor")},{anchor:function(e){return pM(this,"a","name",e)}}),JL("match",(function(e,t,n){return[function(t){var n=LP(this),r=null==t?void 0:oR(t,e);return r?bP(r,t,n):new RegExp(t)[e](dL(n))},function(e){var r=PR(this),o=dL(e),i=n(t,r,o);if(i.done)return i.value;if(!r.global)return pj(r,o);var a=r.unicode;r.lastIndex=0;for(var u,s=[],l=0;null!==(u=pj(r,o));){var c=dL(u[0]);s[l]=c,""===c&&(r.lastIndex=oj(o,v_(r.lastIndex),a)),l++}return 0===l?null:s}]}));var $q={type:"pre",renderElem:function(e,t,n){return Fv("pre",null,t)}},Vq={type:"code",renderElem:function(e,t,n){return Fv("code",null,t)}},Gq={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);return 0===(t=t.filter((function(e){return"code"===QO.getNodeType(e)}))).length&&(t=[{type:"code",language:"",children:[{text:r[0].textContent||""}]}]),{type:"pre",children:t.filter((function(e){return"code"===QO.getNodeType(e)}))}}},Wq={menus:[Uq],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var e=QO.getSelectedNodeByType(o,"code");if(null!=e){var n=function(e,t){var n=t.selection;if(null==n)return"";var r=Rf.string(e),o=n.anchor.offset,i=r.slice(0,o).split("\n"),a=i.length;return 0===a?"":i[a-1]}(e,o);if(n){var r=n.match(/^\s+/);if(null!=r&&null!=r[0]){var i=r[0];return void o.insertText("\n"+i)}}o.insertText("\n")}else t()},o.normalizeNode=function(e){var t=sM(e,2),r=t[0],i=t[1],a=QO.getNodeType(r);return"code"===a&&i.length<=1&&md.setNodes(o,{type:"paragraph"},{at:i}),"pre"===a&&(QO.isLastNode(o,r)&&md.insertNodes(o,QO.genEmptyParagraph(),{at:[i[0]+1]}),"code"!==QO.getNodeType(r.children[0])&&(md.unwrapNodes(o),md.setNodes(o,{type:"paragraph"},{mode:"highest"}))),n([r,i])},o.insertData=function(e){if(null!=QO.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");Nf.insertText(o,t)}else r(e)},o},renderElems:[$q,Vq],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=Mp(e);if("code"!==Qj(t))return e;var n=t.find("xmp");if(0===n.length)return e;var r=n.text();return n.remove(),t.text(r),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,n){return{type:"code",language:"",children:[{text:Mp(e)[0].textContent||""}]}}},Gq]},qq=function(){function e(){this.title=UF("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),Kq={menus:[{key:"fullScreen",factory:function(){return new qq}}]},Yq=function(){function e(){this.title=UF("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!!qf.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(null!=n){var r=[n.anchor.path[0]];md.insertNodes(e,{type:"paragraph",children:[{text:""}]},{at:r}),e.select(Nf.start(e,r))}},e}(),Xq=[nz,eH,yq,Sq,Tq,kq,iU,_q,vU,xH,Wq,pU,$z,cM,lU,Fq,Kq,{menus:[{key:"enter",factory:function(){return new Yq}}]}];MF("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),MF("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var Zq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Jq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Qq,eK,tK=function(e){return e&&e.Math==Math&&e},nK=tK("object"==typeof globalThis&&globalThis)||tK("object"==typeof window&&window)||tK("object"==typeof self&&self)||tK("object"==typeof Zq&&Zq)||function(){return this}()||Function("return this")(),rK=Function.prototype,oK=rK.bind,iK=rK.call,aK=oK&&oK.bind(iK),uK=oK?function(e){return e&&aK(iK,e)}:function(e){return e&&function(){return iK.apply(e,arguments)}},sK=function(e){try{return!!e()}catch(e){return!0}},lK=uK({}.toString),cK=uK("".slice),fK=function(e){return cK(lK(e),8,-1)},dK=nK.Object,pK=uK("".split),hK=sK((function(){return!dK("z").propertyIsEnumerable(0)}))?function(e){return"String"==fK(e)?pK(e,""):dK(e)}:dK,vK=nK.TypeError,gK=function(e){if(null==e)throw vK("Can't call method on "+e);return e},yK=function(e){return hK(gK(e))},mK=Object.defineProperty,bK=function(e,t){try{mK(nK,e,{value:t,configurable:!0,writable:!0})}catch(n){nK[e]=t}return t},EK=nK["__core-js_shared__"]||bK("__core-js_shared__",{}),wK=Jq((function(e){(e.exports=function(e,t){return EK[e]||(EK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),SK=nK.Object,CK=function(e){return SK(gK(e))},DK=uK({}.hasOwnProperty),AK=Object.hasOwn||function(e,t){return DK(CK(e),t)},xK=0,OK=Math.random(),TK=uK(1..toString),NK=function(e){return"Symbol("+(void 0===e?"":e)+")_"+TK(++xK+OK,36)},kK=function(e){return"function"==typeof e},BK=function(e){return kK(e)?e:void 0},IK=function(e,t){return arguments.length<2?BK(nK[e]):nK[e]&&nK[e][t]},FK=IK("navigator","userAgent")||"",PK=nK.process,RK=nK.Deno,_K=PK&&PK.versions||RK&&RK.version,LK=_K&&_K.v8;LK&&(eK=(Qq=LK.split("."))[0]>0&&Qq[0]<4?1:+(Qq[0]+Qq[1])),!eK&&FK&&(!(Qq=FK.match(/Edge\/(\d+)/))||Qq[1]>=74)&&(Qq=FK.match(/Chrome\/(\d+)/))&&(eK=+Qq[1]);var jK,MK=eK,zK=!!Object.getOwnPropertySymbols&&!sK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&MK&&MK<41})),HK=zK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,UK=wK("wks"),$K=nK.Symbol,VK=$K&&$K.for,GK=HK?$K:$K&&$K.withoutSetter||NK,WK=function(e){if(!AK(UK,e)||!zK&&"string"!=typeof UK[e]){var t="Symbol."+e;zK&&AK($K,e)?UK[e]=$K[e]:UK[e]=HK&&VK?VK(t):GK(t)}return UK[e]},qK=function(e){return"object"==typeof e?null!==e:kK(e)},KK=nK.String,YK=nK.TypeError,XK=function(e){if(qK(e))return e;throw YK(KK(e)+" is not an object")},ZK=!sK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),JK=nK.document,QK=qK(JK)&&qK(JK.createElement),eY=function(e){return QK?JK.createElement(e):{}},tY=!ZK&&!sK((function(){return 7!=Object.defineProperty(eY("div"),"a",{get:function(){return 7}}).a})),nY=Function.prototype.call,rY=nY.bind?nY.bind(nY):function(){return nY.apply(nY,arguments)},oY=uK({}.isPrototypeOf),iY=nK.Object,aY=HK?function(e){return"symbol"==typeof e}:function(e){var t=IK("Symbol");return kK(t)&&oY(t.prototype,iY(e))},uY=nK.String,sY=function(e){try{return uY(e)}catch(e){return"Object"}},lY=nK.TypeError,cY=function(e){if(kK(e))return e;throw lY(sY(e)+" is not a function")},fY=function(e,t){var n=e[t];return null==n?void 0:cY(n)},dY=nK.TypeError,pY=nK.TypeError,hY=WK("toPrimitive"),vY=function(e){var t=function(e,t){if(!qK(e)||aY(e))return e;var n,r=fY(e,hY);if(r){if(void 0===t&&(t="default"),n=rY(r,e,t),!qK(n)||aY(n))return n;throw pY("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&kK(n=e.toString)&&!qK(r=rY(n,e)))return r;if(kK(n=e.valueOf)&&!qK(r=rY(n,e)))return r;if("string"!==t&&kK(n=e.toString)&&!qK(r=rY(n,e)))return r;throw dY("Can't convert object to primitive value")}(e,t)}(e,"string");return aY(t)?t:t+""},gY=nK.TypeError,yY=Object.defineProperty,mY={f:ZK?yY:function(e,t,n){if(XK(e),t=vY(t),XK(n),tY)try{return yY(e,t,n)}catch(e){}if("get"in n||"set"in n)throw gY("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},bY=Math.ceil,EY=Math.floor,wY=function(e){var t=+e;return t!=t||0===t?0:(t>0?EY:bY)(t)},SY=Math.max,CY=Math.min,DY=function(e,t){var n=wY(e);return n<0?SY(n+t,0):CY(n,t)},AY=Math.min,xY=function(e){return e>0?AY(wY(e),9007199254740991):0},OY=function(e){return xY(e.length)},TY=function(e){return function(t,n,r){var o,i=yK(t),a=OY(i),u=DY(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},NY={includes:TY(!0),indexOf:TY(!1)},kY={},BY=NY.indexOf,IY=uK([].push),FY=function(e,t){var n,r=yK(e),o=0,i=[];for(n in r)!AK(kY,n)&&AK(r,n)&&IY(i,n);for(;t.length>o;)AK(r,n=t[o++])&&(~BY(i,n)||IY(i,n));return i},PY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],RY=Object.keys||function(e){return FY(e,PY)},_Y=ZK?Object.defineProperties:function(e,t){XK(e);for(var n,r=yK(t),o=RY(t),i=o.length,a=0;i>a;)mY.f(e,n=o[a++],r[n]);return e},LY=IK("document","documentElement"),jY=wK("keys"),MY=function(e){return jY[e]||(jY[e]=NK(e))},zY=MY("IE_PROTO"),HY=function(){},UY=function(e){return"<script>"+e+"<\/script>"},$Y=function(e){e.write(UY("")),e.close();var t=e.parentWindow.Object;return e=null,t},VY=function(){try{jK=new ActiveXObject("htmlfile")}catch(e){}var e,t;VY="undefined"!=typeof document?document.domain&&jK?$Y(jK):((t=eY("iframe")).style.display="none",LY.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(UY("document.F=Object")),e.close(),e.F):$Y(jK);for(var n=PY.length;n--;)delete VY.prototype[PY[n]];return VY()};kY[zY]=!0;var GY=Object.create||function(e,t){var n;return null!==e?(HY.prototype=XK(e),n=new HY,HY.prototype=null,n[zY]=e):n=VY(),void 0===t?n:_Y(n,t)},WY=WK("unscopables"),qY=Array.prototype;null==qY[WY]&&mY.f(qY,WY,{configurable:!0,value:GY(null)});var KY=function(e){qY[WY][e]=!0},YY={},XY=uK(Function.toString);kK(EK.inspectSource)||(EK.inspectSource=function(e){return XY(e)});var ZY,JY,QY,eX=EK.inspectSource,tX=nK.WeakMap,nX=kK(tX)&&/native code/.test(eX(tX)),rX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oX=ZK?function(e,t,n){return mY.f(e,t,rX(1,n))}:function(e,t,n){return e[t]=n,e},iX=nK.TypeError,aX=nK.WeakMap;if(nX||EK.state){var uX=EK.state||(EK.state=new aX),sX=uK(uX.get),lX=uK(uX.has),cX=uK(uX.set);ZY=function(e,t){if(lX(uX,e))throw new iX("Object already initialized");return t.facade=e,cX(uX,e,t),t},JY=function(e){return sX(uX,e)||{}},QY=function(e){return lX(uX,e)}}else{var fX=MY("state");kY[fX]=!0,ZY=function(e,t){if(AK(e,fX))throw new iX("Object already initialized");return t.facade=e,oX(e,fX,t),t},JY=function(e){return AK(e,fX)?e[fX]:{}},QY=function(e){return AK(e,fX)}}var dX,pX,hX,vX={set:ZY,get:JY,has:QY,enforce:function(e){return QY(e)?JY(e):ZY(e,{})},getterFor:function(e){return function(t){var n;if(!qK(t)||(n=JY(t)).type!==e)throw iX("Incompatible receiver, "+e+" required");return n}}},gX={}.propertyIsEnumerable,yX=Object.getOwnPropertyDescriptor,mX={f:yX&&!gX.call({1:2},1)?function(e){var t=yX(this,e);return!!t&&t.enumerable}:gX},bX=Object.getOwnPropertyDescriptor,EX={f:ZK?bX:function(e,t){if(e=yK(e),t=vY(t),tY)try{return bX(e,t)}catch(e){}if(AK(e,t))return rX(!rY(mX.f,e,t),e[t])}},wX=Function.prototype,SX=ZK&&Object.getOwnPropertyDescriptor,CX=AK(wX,"name"),DX={EXISTS:CX,PROPER:CX&&"something"===function(){}.name,CONFIGURABLE:CX&&(!ZK||ZK&&SX(wX,"name").configurable)},AX=Jq((function(e){var t=DX.CONFIGURABLE,n=vX.get,r=vX.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;kK(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!AK(i,"name")||t&&i.name!==f)&&oX(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==nK?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:oX(e,n,i)):l?e[n]=i:bK(n,i)})(Function.prototype,"toString",(function(){return kK(this)&&n(this).source||eX(this)}))})),xX=PY.concat("length","prototype"),OX={f:Object.getOwnPropertyNames||function(e){return FY(e,xX)}},TX={f:Object.getOwnPropertySymbols},NX=uK([].concat),kX=IK("Reflect","ownKeys")||function(e){var t=OX.f(XK(e)),n=TX.f;return n?NX(t,n(e)):t},BX=function(e,t){for(var n=kX(t),r=mY.f,o=EX.f,i=0;i<n.length;i++){var a=n[i];AK(e,a)||r(e,a,o(t,a))}},IX=/#|\.prototype\./,FX=function(e,t){var n=RX[PX(e)];return n==LX||n!=_X&&(kK(t)?sK(t):!!t)},PX=FX.normalize=function(e){return String(e).replace(IX,".").toLowerCase()},RX=FX.data={},_X=FX.NATIVE="N",LX=FX.POLYFILL="P",jX=FX,MX=EX.f,zX=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?nK:l?nK[u]||bK(u,{}):(nK[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=MX(n,r))&&a.value:n[r],!jX(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;BX(i,o)}(e.sham||o&&o.sham)&&oX(i,"sham",!0),AX(n,r,i,e)}},HX=!sK((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),UX=MY("IE_PROTO"),$X=nK.Object,VX=$X.prototype,GX=HX?$X.getPrototypeOf:function(e){var t=CK(e);if(AK(t,UX))return t[UX];var n=t.constructor;return kK(n)&&t instanceof n?n.prototype:t instanceof $X?VX:null},WX=WK("iterator"),qX=!1;[].keys&&("next"in(hX=[].keys())?(pX=GX(GX(hX)))!==Object.prototype&&(dX=pX):qX=!0);var KX=null==dX||sK((function(){var e={};return dX[WX].call(e)!==e}));KX&&(dX={}),kK(dX[WX])||AX(dX,WX,(function(){return this}));var YX={IteratorPrototype:dX,BUGGY_SAFARI_ITERATORS:qX},XX=mY.f,ZX=WK("toStringTag"),JX=function(e,t,n){e&&!AK(e=n?e:e.prototype,ZX)&&XX(e,ZX,{configurable:!0,value:t})},QX=YX.IteratorPrototype,eZ=function(){return this},tZ=nK.String,nZ=nK.TypeError,rZ=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=uK(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return XK(n),function(e){if("object"==typeof e||kK(e))return e;throw nZ("Can't set "+tZ(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),oZ=DX.PROPER,iZ=DX.CONFIGURABLE,aZ=YX.IteratorPrototype,uZ=YX.BUGGY_SAFARI_ITERATORS,sZ=WK("iterator"),lZ=function(){return this},cZ=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=GY(QX,{next:rX(1,n)}),JX(e,o,!1),YY[o]=eZ}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!uZ&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[sZ]||p["@@iterator"]||o&&p[o],v=!uZ&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=GX(g.call(new e)))!==Object.prototype&&u.next&&(GX(u)!==aZ&&(rZ?rZ(u,aZ):kK(u[sZ])||AX(u,sZ,lZ)),JX(u,f,!0)),oZ&&"values"==o&&h&&"values"!==h.name&&(iZ?oX(p,"name","values"):(d=!0,v=function(){return rY(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(uZ||d||!(l in p))&&AX(p,l,s[l]);else zX({target:t,proto:!0,forced:uZ||d},s);return p[sZ]!==v&&AX(p,sZ,v,{name:o}),YY[t]=v,s},fZ=vX.set,dZ=vX.getterFor("Array Iterator"),pZ=cZ(Array,"Array",(function(e,t){fZ(this,{type:"Array Iterator",target:yK(e),index:0,kind:t})}),(function(){var e=dZ(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");YY.Arguments=YY.Array,KY("keys"),KY("values"),KY("entries");var hZ={};hZ[WK("toStringTag")]="z";var vZ="[object z]"===String(hZ),gZ=WK("toStringTag"),yZ=nK.Object,mZ="Arguments"==fK(function(){return arguments}()),bZ=vZ?fK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=yZ(e),gZ))?n:mZ?fK(t):"Object"==(r=fK(t))&&kK(t.callee)?"Arguments":r},EZ=vZ?{}.toString:function(){return"[object "+bZ(this)+"]"};vZ||AX(Object.prototype,"toString",EZ,{unsafe:!0});var wZ=nK.String,SZ=function(e){if("Symbol"===bZ(e))throw TypeError("Cannot convert a Symbol value to a string");return wZ(e)},CZ=uK("".charAt),DZ=uK("".charCodeAt),AZ=uK("".slice),xZ=function(e){return function(t,n){var r,o,i=SZ(gK(t)),a=wY(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=DZ(i,a))<55296||r>56319||a+1===u||(o=DZ(i,a+1))<56320||o>57343?e?CZ(i,a):r:e?AZ(i,a,a+2):o-56320+(r-55296<<10)+65536}},OZ={codeAt:xZ(!1),charAt:xZ(!0)},TZ=OZ.charAt,NZ=vX.set,kZ=vX.getterFor("String Iterator");cZ(String,"String",(function(e){NZ(this,{type:"String Iterator",string:SZ(e),index:0})}),(function(){var e,t=kZ(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=TZ(n,r),t.index+=e.length,{value:e,done:!1})}));var BZ=function(e,t,n){for(var r in t)AX(e,r,t[r],n);return e},IZ=nK.Array,FZ=Math.max,PZ=OX.f,RZ="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_Z={f:function(e){return RZ&&"Window"==fK(e)?function(e){try{return PZ(e)}catch(e){return function(e,t,n){for(var r,o,i,a,u=OY(e),s=DY(void 0,u),l=DY(u,u),c=IZ(FZ(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],(a=vY(o))in r?mY.f(r,a,rX(0,i)):r[a]=i;return c.length=f,c}(RZ)}}(e):PZ(yK(e))}},LZ=sK((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),jZ=Object.isExtensible,MZ=sK((function(){jZ(1)}))||LZ?function(e){return!!qK(e)&&(!LZ||"ArrayBuffer"!=fK(e))&&(!jZ||jZ(e))}:jZ,zZ=!sK((function(){return Object.isExtensible(Object.preventExtensions({}))})),HZ=Jq((function(e){var t=mY.f,n=!1,r=NK("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=OX.f,t=uK([].splice),o={};o[r]=1,e(o).length&&(OX.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},zX({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:_Z.f}))},fastKey:function(e,t){if(!qK(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!AK(e,r)){if(!MZ(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!AK(e,r)){if(!MZ(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return zZ&&n&&MZ(e)&&!AK(e,r)&&i(e),e}};kY[r]=!0})),UZ=uK(uK.bind),$Z=function(e,t){return cY(e),void 0===t?e:UZ?UZ(e,t):function(){return e.apply(t,arguments)}},VZ=WK("iterator"),GZ=Array.prototype,WZ=WK("iterator"),qZ=function(e){if(null!=e)return fY(e,WZ)||fY(e,"@@iterator")||YY[bZ(e)]},KZ=nK.TypeError,YZ=function(e,t,n){var r,o;XK(e);try{if(!(r=fY(e,"return"))){if("throw"===t)throw n;return n}r=rY(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return XK(r),n},XZ=nK.TypeError,ZZ=function(e,t){this.stopped=e,this.result=t},JZ=ZZ.prototype,QZ=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=$Z(t,f),g=function(e){return r&&YZ(r,"normal",e),new ZZ(!0,e)},y=function(e){return d?(XK(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=qZ(e)))throw XZ(sY(e)+" is not iterable");if(void 0!==(c=o)&&(YY.Array===c||GZ[VZ]===c)){for(i=0,a=OY(e);a>i;i++)if((u=y(e[i]))&&oY(JZ,u))return u;return new ZZ(!1)}r=function(e,t){var n=arguments.length<2?qZ(e):t;if(cY(n))return XK(rY(n,e));throw KZ(sY(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=rY(s,r)).done;){try{u=y(l.value)}catch(e){YZ(r,"throw",e)}if("object"==typeof u&&u&&oY(JZ,u))return u}return new ZZ(!1)},eJ=nK.TypeError,tJ=function(e,t){if(oY(t,e))return e;throw eJ("Incorrect invocation")},nJ=WK("iterator"),rJ=!1;try{var oJ=0,iJ={next:function(){return{done:!!oJ++}},return:function(){rJ=!0}};iJ[nJ]=function(){return this},Array.from(iJ,(function(){throw 2}))}catch(Ml){}var aJ=Array.isArray||function(e){return"Array"==fK(e)},uJ=function(){},sJ=[],lJ=IK("Reflect","construct"),cJ=/^\s*(?:class|function)\b/,fJ=uK(cJ.exec),dJ=!cJ.exec(uJ),pJ=function(e){if(!kK(e))return!1;try{return lJ(uJ,sJ,e),!0}catch(e){return!1}},hJ=!lJ||sK((function(){var e;return pJ(pJ.call)||!pJ(Object)||!pJ((function(){e=!0}))||e}))?function(e){if(!kK(e))return!1;switch(bZ(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return dJ||!!fJ(cJ,eX(e))}:pJ,vJ=WK("species"),gJ=nK.Array,yJ=function(e,t){return new(function(e){var t;return aJ(e)&&(t=e.constructor,(hJ(t)&&(t===gJ||aJ(t.prototype))||qK(t)&&null===(t=t[vJ]))&&(t=void 0)),void 0===t?gJ:t}(e))(0===t?0:t)},mJ=uK([].push),bJ=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=CK(s),v=hK(h),g=$Z(l,c),y=OY(v),m=0,b=f||yJ,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:mJ(E,d)}else switch(e){case 4:return!1;case 7:mJ(E,d)}return i?-1:r||o?o:E}},EJ={forEach:bJ(0),map:bJ(1),filter:bJ(2),some:bJ(3),every:bJ(4),find:bJ(5),findIndex:bJ(6),filterReject:bJ(7)},wJ=HZ.getWeakData,SJ=vX.set,CJ=vX.getterFor,DJ=EJ.find,AJ=EJ.findIndex,xJ=uK([].splice),OJ=0,TJ=function(e){return e.frozen||(e.frozen=new NJ)},NJ=function(){this.entries=[]},kJ=function(e,t){return DJ(e.entries,(function(e){return e[0]===t}))};NJ.prototype={get:function(e){var t=kJ(this,e);if(t)return t[1]},has:function(e){return!!kJ(this,e)},set:function(e,t){var n=kJ(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=AJ(this.entries,(function(t){return t[0]===e}));return~t&&xJ(this.entries,t,1),!!~t}};var BJ,IJ={getConstructor:function(e,t,n,r){var o=e((function(e,o){tJ(e,i),SJ(e,{type:t,id:OJ++,frozen:void 0}),null!=o&&QZ(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=CJ(t),u=function(e,t,n){var r=a(e),o=wJ(XK(t),!0);return!0===o?TJ(r).set(t,n):o[r.id]=n,e};return BZ(i,{delete:function(e){var t=a(this);if(!qK(e))return!1;var n=wJ(e);return!0===n?TJ(t).delete(e):n&&AK(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!qK(e))return!1;var n=wJ(e);return!0===n?TJ(t).has(e):n&&AK(n,t.id)}}),BZ(i,n?{get:function(e){var t=a(this);if(qK(e)){var n=wJ(e);return!0===n?TJ(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},FJ=vX.enforce,PJ=!nK.ActiveXObject&&"ActiveXObject"in nK,RJ=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},_J=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=nK[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=uK(u[e]);AX(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!qK(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!qK(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!qK(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(jX(e,!kK(a)||!(o||u.forEach&&!sK((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),HZ.enable();else if(jX(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=sK((function(){f.has(1)})),h=function(e,t){if(!rJ)return!1;var n=!1;try{var r={};r[nJ]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&sK((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){tJ(e,u);var n=function(e,t,n){var r,o;return rZ&&kK(r=t.constructor)&&r!==n&&qK(o=r.prototype)&&o!==n.prototype&&rZ(e,o),e}(new a,e,s);return null!=t&&QZ(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,zX({global:!0,forced:s!=a},l),JX(s,e),o||n.setStrong(s,e,r),s}("WeakMap",RJ,IJ);if(nX&&PJ){BJ=IJ.getConstructor(RJ,"WeakMap",!0),HZ.enable();var LJ=_J.prototype,jJ=uK(LJ.delete),MJ=uK(LJ.has),zJ=uK(LJ.get),HJ=uK(LJ.set);BZ(LJ,{delete:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),jJ(this,e)||t.frozen.delete(e)}return jJ(this,e)},has:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),MJ(this,e)||t.frozen.has(e)}return MJ(this,e)},get:function(e){if(qK(e)&&!MZ(e)){var t=FJ(this);return t.frozen||(t.frozen=new BJ),MJ(this,e)?zJ(this,e):t.frozen.get(e)}return zJ(this,e)},set:function(e,t){if(qK(e)&&!MZ(e)){var n=FJ(this);n.frozen||(n.frozen=new BJ),MJ(this,e)?HJ(this,e,t):n.frozen.set(e,t)}else HJ(this,e,t);return this}})}var UJ={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},$J=eY("span").classList,VJ=$J&&$J.constructor&&$J.constructor.prototype,GJ=VJ===Object.prototype?void 0:VJ,WJ=WK("iterator"),qJ=WK("toStringTag"),KJ=pZ.values,YJ=function(e,t){if(e){if(e[WJ]!==KJ)try{oX(e,WJ,KJ)}catch(t){e[WJ]=KJ}if(e[qJ]||oX(e,qJ,t),UJ[t])for(var n in pZ)if(e[n]!==pZ[n])try{oX(e,n,pZ[n])}catch(t){e[n]=pZ[n]}}};for(var XJ in UJ)YJ(nK[XJ]&&nK[XJ].prototype,XJ);YJ(GJ,"DOMTokenList");var ZJ=new WeakMap,JJ={type:"list-item",renderElem:function(e,t,n){ZJ.set(e,n);var r=e,o=r.level,i=void 0===o?0:o,a=r.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(void 0!==a&&a){var l=function(e,t){var n=t,r=n.type,o=n.level,i=void 0===o?0:o,a=n.ordered,u=void 0!==a&&a;if(!u)return-1;var s=1,l=t,c=QO.findPath(e,l);if(0===c[0])return 1;for(;c[0]>0;){var f=Mf.previous(c),d=Nf.node(e,f);if(null==d)break;var p=d[0],h=p.level,v=void 0===h?0:h,g=p.type,y=p.ordered;if(g!==r)break;if(v<i)break;if(v===i){if(y!==u)break;s++}l=p,c=f}return s}(n,e);s=l+"."}else s=function(e){void 0===e&&(e=0);var t="";switch(e){case 0:t="•";break;case 1:t="◦";break;default:t="▪"}return t}(i);var c=function(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o++){var i=n[o];ed.isText(i)&&(t=i)}return null==t?"":t.color||""}(e);return Fv("div",{style:u},Fv("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Fv("span",null,t))}},QJ=function(e,t){return QJ=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},QJ(e,t)};function eQ(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}QJ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function tQ(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nQ(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function rQ(e,t,n){for(var r=t.type,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["type"]),i=void 0!==n?n:o.level||0,a=QO.findPath(e,t),u=a;;){if(0===u.length||0===a[a.length-1])return null;u=Mf.previous(u);var s=Nf.node(e,u);if(!s)return null;var l=nQ(s,1)[0],c=l.level,f=void 0===c?0:c;if(QO.getNodeType(l)!==r)return null;if(f===i)return l}}function oQ(e,t,n){var r=rQ(e,t,n);return!!r&&r.ordered===t.ordered}function iQ(e){return Nf.nodes(e,{at:e.selection||void 0,match:function(t){return 1===QO.findPath(e,t).length}})}"function"==typeof SuppressedError&&SuppressedError;var aQ=NY.includes;zX({target:"Array",proto:!0},{includes:function(e){return aQ(this,e,arguments.length>1?arguments[1]:void 0)}}),KY("includes");var uQ,sQ,lQ=function(){var e=XK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},cQ=nK.RegExp,fQ=sK((function(){var e=cQ("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),dQ=fQ||sK((function(){return!cQ("a","y").sticky})),pQ={BROKEN_CARET:fQ||sK((function(){var e=cQ("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:dQ,UNSUPPORTED_Y:fQ},hQ=nK.RegExp,vQ=sK((function(){var e=hQ(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),gQ=nK.RegExp,yQ=sK((function(){var e=gQ("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),mQ=vX.get,bQ=wK("native-string-replace",String.prototype.replace),EQ=RegExp.prototype.exec,wQ=EQ,SQ=uK("".charAt),CQ=uK("".indexOf),DQ=uK("".replace),AQ=uK("".slice),xQ=(sQ=/b*/g,rY(EQ,uQ=/a/,"a"),rY(EQ,sQ,"a"),0!==uQ.lastIndex||0!==sQ.lastIndex),OQ=pQ.BROKEN_CARET,TQ=void 0!==/()??/.exec("")[1];(xQ||TQ||OQ||vQ||yQ)&&(wQ=function(e){var t,n,r,o,i,a,u,s=this,l=mQ(s),c=SZ(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=rY(wQ,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=OQ&&s.sticky,h=rY(lQ,s),v=s.source,g=0,y=c;if(p&&(h=DQ(h,"y",""),-1===CQ(h,"g")&&(h+="g"),y=AQ(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==SQ(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),TQ&&(n=new RegExp("^"+v+"$(?!\\s)",h)),xQ&&(r=s.lastIndex),o=rY(EQ,p?n:s,y),p?o?(o.input=AQ(o.input,g),o[0]=AQ(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:xQ&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),TQ&&o&&o.length>1&&rY(bQ,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=GY(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var NQ=wQ;zX({target:"RegExp",proto:!0,forced:/./.exec!==NQ},{exec:NQ});var kQ=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return QO.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this.getListNode(e);if(null==t)return!1;var n=t.ordered;return(void 0!==n&&n)===this.ordered},e.prototype.isDisabled=function(e){return null==e.selection||!!QO.getSelectedElems(e).some((function(t){if(Nf.isVoid(e,t)&&Nf.isBlock(e,t))return!0;var n=t.type;return!!["pre","code","table"].includes(n)||void 0}))},e.prototype.exec=function(e,t){this.isActive(e)?md.setNodes(e,{type:"paragraph",ordered:void 0,level:void 0}):md.setNodes(e,{type:"list-item",ordered:this.ordered,indent:void 0})},e}(),BQ='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',IQ='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',FQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=UF("listModule.unOrderedList"),t.iconSvg=BQ,t}return eQ(t,e),t}(kQ),PQ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=UF("listModule.orderedList"),t.iconSvg=IQ,t}return eQ(t,e),t}(kQ),RQ={key:"bulletedList",factory:function(){return new FQ}},_Q={key:"numberedList",factory:function(){return new PQ}},LQ=[],jQ={type:"list-item",elemToHtml:function(e,t){var n="",r="",o=e.ordered,i=void 0!==o&&o?"ol":"ul",a=function(e){var t=ZJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=QO.findPath(t,e);if(0===s[0])return u+1;var l=Mf.previous(s),c=Nf.node(t,l);if(!c)return 0;var f=nQ(c,1)[0];if(QO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?u-g:g>u?oQ(t,e)?0:1:g===u?h===i?0:1:0}(e);if(a>0)for(var u=0;u<a;u++)n+="<"+i+">",LQ.push(i);var s=function(e){var t=ZJ.get(e);if(null==t)return 0;var n=e,r=n.type,o=n.ordered,i=void 0!==o&&o,a=n.level,u=void 0===a?0:a,s=QO.findPath(t,e);if(s[0]===t.children.length-1)return u+1;var l=Mf.next(s),c=Nf.node(t,l);if(!c)return 0;var f=nQ(c,1)[0];if(QO.getNodeType(f)!==r)return u+1;var d=f,p=d.ordered,h=void 0!==p&&p,v=d.level,g=void 0===v?0:v;return g<u?oQ(t,f)?u-g:u-g+1:g>u?0:g===u?h===i?0:1:0}(e);if(s>0)for(u=0;u<s;u++)r+="</"+LQ.pop()+">";return{html:"<li>"+t+"</li>",prefix:n,suffix:r}}},MQ=WK("species"),zQ=EJ.filter,HQ=("filter",MK>=51||!sK((function(){var e=[];return(e.constructor={})[MQ]=function(){return{foo:1}},1!==e.filter(Boolean).foo})));zX({target:"Array",proto:!0,forced:!HQ},{filter:function(e){return zQ(this,e,arguments.length>1?arguments[1]:void 0)}});var UQ=Function.prototype,$Q=UQ.apply,VQ=UQ.bind,GQ=UQ.call,WQ="object"==typeof Reflect&&Reflect.apply||(VQ?GQ.bind($Q):function(){return GQ.apply($Q,arguments)}),qQ=(WK("species"),RegExp.prototype),KQ=OZ.charAt,YQ=function(e,t,n){return t+(n?KQ(e,t).length:1)},XQ=Math.floor,ZQ=uK("".charAt),JQ=uK("".replace),QQ=uK("".slice),e0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,t0=/\$([$&'`]|\d{1,2})/g,n0=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=t0;return void 0!==o&&(o=CK(o),s=e0),JQ(i,s,(function(i,s){var l;switch(ZQ(s,0)){case"$":return"$";case"&":return e;case"`":return QQ(t,0,n);case"'":return QQ(t,a);case"<":l=o[QQ(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=XQ(c/10);return 0===f?i:f<=u?void 0===r[f-1]?ZQ(s,1):r[f-1]+ZQ(s,1):i}l=r[c-1]}return void 0===l?"":l}))},r0=nK.TypeError,o0=function(e,t){var n=e.exec;if(kK(n)){var r=rY(n,e,t);return null!==r&&XK(r),r}if("RegExp"===fK(e))return rY(NQ,e,t);throw r0("RegExp#exec called on incompatible receiver")},i0=WK("replace"),a0=Math.max,u0=Math.min,s0=uK([].concat),l0=uK([].push),c0=uK("".indexOf),f0=uK("".slice),d0="$0"==="a".replace(/./,"$0"),p0=!!/./[i0]&&""===/./[i0]("a","$0");!function(e,t,n,r){var o=WK(e),i=!sK((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!sK((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=uK(/./[o]),s=function(e,t,n){var r=p0?"$":"$0";return[function(e,n){var r=gK(this),o=null==e?void 0:fY(e,i0);return o?rY(o,e,r,n):rY(t,SZ(r),e,n)},function(e,o){var i=XK(this),a=SZ(e);if("string"==typeof o&&-1===c0(o,r)&&-1===c0(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=kK(o);s||(o=SZ(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=o0(i,a);if(null===d)break;if(l0(f,d),!l)break;""===SZ(d[0])&&(i.lastIndex=YQ(a,xY(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=SZ((d=f[g])[0]),m=a0(u0(wY(d.index),a.length),0),b=[],E=1;E<d.length;E++)l0(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=s0([y],b,m,a);void 0!==w&&l0(S,w);var C=SZ(WQ(o,void 0,S))}else C=n0(y,a,m,b,w,o);m>=v&&(h+=f0(a,v,m)+C,v=m+y.length)}return h+f0(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=uK(e),s=t.exec;return s===NQ||s===qQ.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));AX(String.prototype,e,s[0]),AX(qQ,o,s[1])}}("replace",0,!!sK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!d0||p0);var h0=nK.TypeError,v0=function(e,t,n,r,o,i,a,u){for(var s,l,c=o,f=0,d=!!a&&$Z(a,u);f<r;){if(f in n){if(s=d?d(n[f],f,t):n[f],i>0&&aJ(s))l=OY(s),c=v0(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw h0("Exceed the acceptable array length");e[c]=s}c++}f++}return c},g0=v0;function y0(e){return e.length?e[0].tagName.toLowerCase():""}zX({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=CK(this),n=OY(t),r=yJ(t,0);return r.length=g0(r,t,t,n,0,void 0===e?1:wY(e)),r}}),KY("flat"),zX({global:!0},{globalThis:nK}),ah&&(Mp.fn.append=ah),$p&&(Mp.fn.attr=$p),sh&&(Mp.fn.parent=sh);var m0={renderElems:[JJ],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e;return o.deleteBackward=function(n){var r=o.selection;if(null!=r)if(qf.isExpanded(r))t(n);else{var i=QO.getSelectedNodeByType(o,"list-item");if(null!=i)if(0!==r.focus.offset)t(n);else{var a=i,u=a.level,s=void 0===u?0:u,l=a.ordered,c=void 0!==l&&l;if(s>0){var f=rQ(e,i,s-1);f&&f.ordered!==c?md.setNodes(o,{level:s-1,ordered:!c}):md.setNodes(o,{level:s-1})}else md.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(n)}else t(n)},o.handleTab=function(){var e,t,r,i,a=o.selection;if(null!=a){if(qf.isCollapsed(a)){var u=QO.getSelectedNodeByType(o,"list-item");if(null==u)return void n();if(0===a.focus.offset){var s=u.level,l=void 0===s?0:s;return void md.setNodes(o,{level:l+1})}}if(qf.isExpanded(a)){var c=0,f=!1;try{for(var d=tQ(iQ(o)),p=d.next();!p.done;p=d.next()){var h=nQ(p.value,1)[0];"list-item"===QO.getNodeType(h)?c++:f=!0}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}if(f||c<=1)return void n();try{for(var v=tQ(iQ(o)),g=v.next();!g.done;g=v.next()){var y=nQ(g.value,2),m=(h=y[0],y[1]),b=h.level;l=void 0===b?0:b,md.setNodes(o,{level:l+1},{at:m})}}catch(e){r={error:e}}finally{try{g&&!g.done&&(i=v.return)&&i.call(v)}finally{if(r)throw r.error}}}else n()}else n()},o.normalizeNode=function(e){var t=nQ(e,2),n=t[0],i=t[1],a=QO.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||md.unwrapNodes(o,{at:i}),r([n,i])},o},menus:[RQ,_Q],elemsToHtml:[jQ],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=function(e){return"ol"===y0(e.parent())}(r),i=function(e){for(var t=0,n=e.parent(),r=y0(n);"ul"===r||"ol"===r;)r=y0(n=n.parent()),t++;return t-1}(r);return{type:"list-item",ordered:o,level:i,children:t}}}]};MF("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell"}}),MF("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格"}});var b0="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E0(e){var t={exports:{}};return e(t,t.exports),t.exports}var w0,S0,C0=function(e){return e&&e.Math==Math&&e},D0=C0("object"==typeof globalThis&&globalThis)||C0("object"==typeof window&&window)||C0("object"==typeof self&&self)||C0("object"==typeof b0&&b0)||function(){return this}()||Function("return this")(),A0=function(e){try{return!!e()}catch(e){return!0}},x0=!A0((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O0=Function.prototype.call,T0=O0.bind?O0.bind(O0):function(){return O0.apply(O0,arguments)},N0={}.propertyIsEnumerable,k0=Object.getOwnPropertyDescriptor,B0={f:k0&&!N0.call({1:2},1)?function(e){var t=k0(this,e);return!!t&&t.enumerable}:N0},I0=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},F0=Function.prototype,P0=F0.bind,R0=F0.call,_0=P0&&P0.bind(R0),L0=P0?function(e){return e&&_0(R0,e)}:function(e){return e&&function(){return R0.apply(e,arguments)}},j0=L0({}.toString),M0=L0("".slice),z0=function(e){return M0(j0(e),8,-1)},H0=D0.Object,U0=L0("".split),$0=A0((function(){return!H0("z").propertyIsEnumerable(0)}))?function(e){return"String"==z0(e)?U0(e,""):H0(e)}:H0,V0=D0.TypeError,G0=function(e){if(null==e)throw V0("Can't call method on "+e);return e},W0=function(e){return $0(G0(e))},q0=function(e){return"function"==typeof e},K0=function(e){return"object"==typeof e?null!==e:q0(e)},Y0=function(e){return q0(e)?e:void 0},X0=function(e,t){return arguments.length<2?Y0(D0[e]):D0[e]&&D0[e][t]},Z0=L0({}.isPrototypeOf),J0=X0("navigator","userAgent")||"",Q0=D0.process,e1=D0.Deno,t1=Q0&&Q0.versions||e1&&e1.version,n1=t1&&t1.v8;n1&&(S0=(w0=n1.split("."))[0]>0&&w0[0]<4?1:+(w0[0]+w0[1])),!S0&&J0&&(!(w0=J0.match(/Edge\/(\d+)/))||w0[1]>=74)&&(w0=J0.match(/Chrome\/(\d+)/))&&(S0=+w0[1]);var r1=S0,o1=!!Object.getOwnPropertySymbols&&!A0((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r1&&r1<41})),i1=o1&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,a1=D0.Object,u1=i1?function(e){return"symbol"==typeof e}:function(e){var t=X0("Symbol");return q0(t)&&Z0(t.prototype,a1(e))},s1=D0.String,l1=function(e){try{return s1(e)}catch(e){return"Object"}},c1=D0.TypeError,f1=function(e){if(q0(e))return e;throw c1(l1(e)+" is not a function")},d1=function(e,t){var n=e[t];return null==n?void 0:f1(n)},p1=D0.TypeError,h1=Object.defineProperty,v1=function(e,t){try{h1(D0,e,{value:t,configurable:!0,writable:!0})}catch(n){D0[e]=t}return t},g1=D0["__core-js_shared__"]||v1("__core-js_shared__",{}),y1=E0((function(e){(e.exports=function(e,t){return g1[e]||(g1[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),m1=D0.Object,b1=function(e){return m1(G0(e))},E1=L0({}.hasOwnProperty),w1=Object.hasOwn||function(e,t){return E1(b1(e),t)},S1=0,C1=Math.random(),D1=L0(1..toString),A1=function(e){return"Symbol("+(void 0===e?"":e)+")_"+D1(++S1+C1,36)},x1=y1("wks"),O1=D0.Symbol,T1=O1&&O1.for,N1=i1?O1:O1&&O1.withoutSetter||A1,k1=function(e){if(!w1(x1,e)||!o1&&"string"!=typeof x1[e]){var t="Symbol."+e;o1&&w1(O1,e)?x1[e]=O1[e]:x1[e]=i1&&T1?T1(t):N1(t)}return x1[e]},B1=D0.TypeError,I1=k1("toPrimitive"),F1=function(e){var t=function(e,t){if(!K0(e)||u1(e))return e;var n,r=d1(e,I1);if(r){if(void 0===t&&(t="default"),n=T0(r,e,t),!K0(n)||u1(n))return n;throw B1("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&q0(n=e.toString)&&!K0(r=T0(n,e)))return r;if(q0(n=e.valueOf)&&!K0(r=T0(n,e)))return r;if("string"!==t&&q0(n=e.toString)&&!K0(r=T0(n,e)))return r;throw p1("Can't convert object to primitive value")}(e,t)}(e,"string");return u1(t)?t:t+""},P1=D0.document,R1=K0(P1)&&K0(P1.createElement),_1=function(e){return R1?P1.createElement(e):{}},L1=!x0&&!A0((function(){return 7!=Object.defineProperty(_1("div"),"a",{get:function(){return 7}}).a})),j1=Object.getOwnPropertyDescriptor,M1={f:x0?j1:function(e,t){if(e=W0(e),t=F1(t),L1)try{return j1(e,t)}catch(e){}if(w1(e,t))return I0(!T0(B0.f,e,t),e[t])}},z1=D0.String,H1=D0.TypeError,U1=function(e){if(K0(e))return e;throw H1(z1(e)+" is not an object")},$1=D0.TypeError,V1=Object.defineProperty,G1={f:x0?V1:function(e,t,n){if(U1(e),t=F1(t),U1(n),L1)try{return V1(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $1("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},W1=x0?function(e,t,n){return G1.f(e,t,I0(1,n))}:function(e,t,n){return e[t]=n,e},q1=L0(Function.toString);q0(g1.inspectSource)||(g1.inspectSource=function(e){return q1(e)});var K1,Y1,X1,Z1=g1.inspectSource,J1=D0.WeakMap,Q1=q0(J1)&&/native code/.test(Z1(J1)),e2=y1("keys"),t2=function(e){return e2[e]||(e2[e]=A1(e))},n2={},r2=D0.TypeError,o2=D0.WeakMap;if(Q1||g1.state){var i2=g1.state||(g1.state=new o2),a2=L0(i2.get),u2=L0(i2.has),s2=L0(i2.set);K1=function(e,t){if(u2(i2,e))throw new r2("Object already initialized");return t.facade=e,s2(i2,e,t),t},Y1=function(e){return a2(i2,e)||{}},X1=function(e){return u2(i2,e)}}else{var l2=t2("state");n2[l2]=!0,K1=function(e,t){if(w1(e,l2))throw new r2("Object already initialized");return t.facade=e,W1(e,l2,t),t},Y1=function(e){return w1(e,l2)?e[l2]:{}},X1=function(e){return w1(e,l2)}}var c2={set:K1,get:Y1,has:X1,enforce:function(e){return X1(e)?Y1(e):K1(e,{})},getterFor:function(e){return function(t){var n;if(!K0(t)||(n=Y1(t)).type!==e)throw r2("Incompatible receiver, "+e+" required");return n}}},f2=Function.prototype,d2=x0&&Object.getOwnPropertyDescriptor,p2=w1(f2,"name"),h2={EXISTS:p2,PROPER:p2&&"something"===function(){}.name,CONFIGURABLE:p2&&(!x0||x0&&d2(f2,"name").configurable)},v2=E0((function(e){var t=h2.CONFIGURABLE,n=c2.get,r=c2.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;q0(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!w1(i,"name")||t&&i.name!==f)&&W1(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==D0?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:W1(e,n,i)):l?e[n]=i:v1(n,i)})(Function.prototype,"toString",(function(){return q0(this)&&n(this).source||Z1(this)}))})),g2=Math.ceil,y2=Math.floor,m2=function(e){var t=+e;return t!=t||0===t?0:(t>0?y2:g2)(t)},b2=Math.max,E2=Math.min,w2=function(e,t){var n=m2(e);return n<0?b2(n+t,0):E2(n,t)},S2=Math.min,C2=function(e){return e>0?S2(m2(e),9007199254740991):0},D2=function(e){return C2(e.length)},A2=function(e){return function(t,n,r){var o,i=W0(t),a=D2(i),u=w2(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},x2={includes:A2(!0),indexOf:A2(!1)},O2=x2.indexOf,T2=L0([].push),N2=function(e,t){var n,r=W0(e),o=0,i=[];for(n in r)!w1(n2,n)&&w1(r,n)&&T2(i,n);for(;t.length>o;)w1(r,n=t[o++])&&(~O2(i,n)||T2(i,n));return i},k2=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],B2=k2.concat("length","prototype"),I2={f:Object.getOwnPropertyNames||function(e){return N2(e,B2)}},F2={f:Object.getOwnPropertySymbols},P2=L0([].concat),R2=X0("Reflect","ownKeys")||function(e){var t=I2.f(U1(e)),n=F2.f;return n?P2(t,n(e)):t},_2=function(e,t){for(var n=R2(t),r=G1.f,o=M1.f,i=0;i<n.length;i++){var a=n[i];w1(e,a)||r(e,a,o(t,a))}},L2=/#|\.prototype\./,j2=function(e,t){var n=z2[M2(e)];return n==U2||n!=H2&&(q0(t)?A0(t):!!t)},M2=j2.normalize=function(e){return String(e).replace(L2,".").toLowerCase()},z2=j2.data={},H2=j2.NATIVE="N",U2=j2.POLYFILL="P",$2=j2,V2=M1.f,G2=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?D0:l?D0[u]||v1(u,{}):(D0[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=V2(n,r))&&a.value:n[r],!$2(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;_2(i,o)}(e.sham||o&&o.sham)&&W1(i,"sham",!0),v2(n,r,i,e)}},W2={};W2[k1("toStringTag")]="z";var q2="[object z]"===String(W2),K2=k1("toStringTag"),Y2=D0.Object,X2="Arguments"==z0(function(){return arguments}()),Z2=q2?z0:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Y2(e),K2))?n:X2?z0(t):"Object"==(r=z0(t))&&q0(t.callee)?"Arguments":r},J2=D0.String,Q2=function(e){if("Symbol"===Z2(e))throw TypeError("Cannot convert a Symbol value to a string");return J2(e)},e4=/"/g,t4=L0("".replace);G2({target:"String",proto:!0,forced:("anchor",A0((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=Q2(G0(this)),r="<a",(r+=' name="'+t4(Q2(t),e4,""")+'"')+">"+n+"</a>";var t,n,r}});var n4,r4=function(){var e=U1(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},o4=D0.RegExp,i4=A0((function(){var e=o4("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a4=i4||A0((function(){return!o4("a","y").sticky})),u4={BROKEN_CARET:i4||A0((function(){var e=o4("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:a4,UNSUPPORTED_Y:i4},s4=Object.keys||function(e){return N2(e,k2)},l4=x0?Object.defineProperties:function(e,t){U1(e);for(var n,r=W0(t),o=s4(t),i=o.length,a=0;i>a;)G1.f(e,n=o[a++],r[n]);return e},c4=X0("document","documentElement"),f4=t2("IE_PROTO"),d4=function(){},p4=function(e){return"<script>"+e+"<\/script>"},h4=function(e){e.write(p4("")),e.close();var t=e.parentWindow.Object;return e=null,t},v4=function(){try{n4=new ActiveXObject("htmlfile")}catch(e){}var e,t;v4="undefined"!=typeof document?document.domain&&n4?h4(n4):((t=_1("iframe")).style.display="none",c4.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p4("document.F=Object")),e.close(),e.F):h4(n4);for(var n=k2.length;n--;)delete v4.prototype[k2[n]];return v4()};n2[f4]=!0;var g4,y4,m4=Object.create||function(e,t){var n;return null!==e?(d4.prototype=U1(e),n=new d4,d4.prototype=null,n[f4]=e):n=v4(),void 0===t?n:l4(n,t)},b4=D0.RegExp,E4=A0((function(){var e=b4(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),w4=D0.RegExp,S4=A0((function(){var e=w4("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),C4=c2.get,D4=y1("native-string-replace",String.prototype.replace),A4=RegExp.prototype.exec,x4=A4,O4=L0("".charAt),T4=L0("".indexOf),N4=L0("".replace),k4=L0("".slice),B4=(y4=/b*/g,T0(A4,g4=/a/,"a"),T0(A4,y4,"a"),0!==g4.lastIndex||0!==y4.lastIndex),I4=u4.BROKEN_CARET,F4=void 0!==/()??/.exec("")[1];(B4||F4||I4||E4||S4)&&(x4=function(e){var t,n,r,o,i,a,u,s=this,l=C4(s),c=Q2(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=T0(x4,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=I4&&s.sticky,h=T0(r4,s),v=s.source,g=0,y=c;if(p&&(h=N4(h,"y",""),-1===T4(h,"g")&&(h+="g"),y=k4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==O4(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),F4&&(n=new RegExp("^"+v+"$(?!\\s)",h)),B4&&(r=s.lastIndex),o=T0(A4,p?n:s,y),p?o?(o.input=k4(o.input,g),o[0]=k4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:B4&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),F4&&o&&o.length>1&&T0(D4,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=m4(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var P4=x4;G2({target:"RegExp",proto:!0,forced:/./.exec!==P4},{exec:P4});var R4=Array.isArray||function(e){return"Array"==z0(e)},_4=function(){},L4=[],j4=X0("Reflect","construct"),M4=/^\s*(?:class|function)\b/,z4=L0(M4.exec),H4=!M4.exec(_4),U4=function(e){if(!q0(e))return!1;try{return j4(_4,L4,e),!0}catch(e){return!1}},$4=!j4||A0((function(){var e;return U4(U4.call)||!U4(Object)||!U4((function(){e=!0}))||e}))?function(e){if(!q0(e))return!1;switch(Z2(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return H4||!!z4(M4,Z1(e))}:U4,V4=function(e,t,n){var r=F1(t);r in e?G1.f(e,r,I0(0,n)):e[r]=n},G4=k1("species"),W4=function(e){return r1>=51||!A0((function(){var t=[];return(t.constructor={})[G4]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},q4=L0([].slice),K4=W4("slice"),Y4=k1("species"),X4=D0.Array,Z4=Math.max;G2({target:"Array",proto:!0,forced:!K4},{slice:function(e,t){var n,r,o,i=W0(this),a=D2(i),u=w2(e,a),s=w2(void 0===t?a:t,a);if(R4(i)&&(n=i.constructor,($4(n)&&(n===X4||R4(n.prototype))||K0(n)&&null===(n=n[Y4]))&&(n=void 0),n===X4||void 0===n))return q4(i,u,s);for(r=new(void 0===n?X4:n)(Z4(s-u,0)),o=0;u<s;u++,o++)u in i&&V4(r,o,i[u]);return r.length=o,r}});var J4=function(){return J4=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J4.apply(this,arguments)};function Q4(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function e6(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function t6(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function n6(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var r6=k1("unscopables"),o6=Array.prototype;null==o6[r6]&&G1.f(o6,r6,{configurable:!0,value:m4(null)});var i6,a6,u6,s6=function(e){o6[r6][e]=!0},l6={},c6=!A0((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),f6=t2("IE_PROTO"),d6=D0.Object,p6=d6.prototype,h6=c6?d6.getPrototypeOf:function(e){var t=b1(e);if(w1(t,f6))return t[f6];var n=t.constructor;return q0(n)&&t instanceof n?n.prototype:t instanceof d6?p6:null},v6=k1("iterator"),g6=!1;[].keys&&("next"in(u6=[].keys())?(a6=h6(h6(u6)))!==Object.prototype&&(i6=a6):g6=!0);var y6=null==i6||A0((function(){var e={};return i6[v6].call(e)!==e}));y6&&(i6={}),q0(i6[v6])||v2(i6,v6,(function(){return this}));var m6={IteratorPrototype:i6,BUGGY_SAFARI_ITERATORS:g6},b6=G1.f,E6=k1("toStringTag"),w6=function(e,t,n){e&&!w1(e=n?e:e.prototype,E6)&&b6(e,E6,{configurable:!0,value:t})},S6=m6.IteratorPrototype,C6=function(){return this},D6=D0.String,A6=D0.TypeError,x6=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=L0(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return U1(n),function(e){if("object"==typeof e||q0(e))return e;throw A6("Can't set "+D6(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),O6=h2.PROPER,T6=h2.CONFIGURABLE,N6=m6.IteratorPrototype,k6=m6.BUGGY_SAFARI_ITERATORS,B6=k1("iterator"),I6=function(){return this},F6=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=m4(S6,{next:I0(1,n)}),w6(e,o,!1),l6[o]=C6}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!k6&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[B6]||p["@@iterator"]||o&&p[o],v=!k6&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=h6(g.call(new e)))!==Object.prototype&&u.next&&(h6(u)!==N6&&(x6?x6(u,N6):q0(u[B6])||v2(u,B6,I6)),w6(u,f,!0)),O6&&"values"==o&&h&&"values"!==h.name&&(T6?W1(p,"name","values"):(d=!0,v=function(){return T0(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(k6||d||!(l in p))&&v2(p,l,s[l]);else G2({target:t,proto:!0,forced:k6||d},s);return p[B6]!==v&&v2(p,B6,v,{name:o}),l6[t]=v,s},P6=c2.set,R6=c2.getterFor("Array Iterator"),_6=F6(Array,"Array",(function(e,t){P6(this,{type:"Array Iterator",target:W0(e),index:0,kind:t})}),(function(){var e=R6(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");l6.Arguments=l6.Array,s6("keys"),s6("values"),s6("entries");var L6=q2?{}.toString:function(){return"[object "+Z2(this)+"]"};q2||v2(Object.prototype,"toString",L6,{unsafe:!0});var j6=L0("".charAt),M6=L0("".charCodeAt),z6=L0("".slice),H6=function(e){return function(t,n){var r,o,i=Q2(G0(t)),a=m2(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=M6(i,a))<55296||r>56319||a+1===u||(o=M6(i,a+1))<56320||o>57343?e?j6(i,a):r:e?z6(i,a,a+2):o-56320+(r-55296<<10)+65536}},U6={codeAt:H6(!1),charAt:H6(!0)},$6=U6.charAt,V6=c2.set,G6=c2.getterFor("String Iterator");F6(String,"String",(function(e){V6(this,{type:"String Iterator",string:Q2(e),index:0})}),(function(){var e,t=G6(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$6(n,r),t.index+=e.length,{value:e,done:!1})}));var W6=D0.Array,q6=Math.max,K6=function(e,t,n){for(var r=D2(e),o=w2(t,r),i=w2(void 0===n?r:n,r),a=W6(q6(i-o,0)),u=0;o<i;o++,u++)V4(a,u,e[o]);return a.length=u,a},Y6=I2.f,X6="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Z6={f:function(e){return X6&&"Window"==z0(e)?function(e){try{return Y6(e)}catch(e){return K6(X6)}}(e):Y6(W0(e))}},J6=A0((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Q6=Object.isExtensible,e3=A0((function(){Q6(1)}))||J6?function(e){return!!K0(e)&&(!J6||"ArrayBuffer"!=z0(e))&&(!Q6||Q6(e))}:Q6,t3=!A0((function(){return Object.isExtensible(Object.preventExtensions({}))})),n3=E0((function(e){var t=G1.f,n=!1,r=A1("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=I2.f,t=L0([].splice),o={};o[r]=1,e(o).length&&(I2.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},G2({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z6.f}))},fastKey:function(e,t){if(!K0(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!w1(e,r)){if(!e3(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!w1(e,r)){if(!e3(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return t3&&n&&e3(e)&&!w1(e,r)&&i(e),e}};n2[r]=!0})),r3=L0(L0.bind),o3=function(e,t){return f1(e),void 0===t?e:r3?r3(e,t):function(){return e.apply(t,arguments)}},i3=k1("iterator"),a3=Array.prototype,u3=k1("iterator"),s3=function(e){if(null!=e)return d1(e,u3)||d1(e,"@@iterator")||l6[Z2(e)]},l3=D0.TypeError,c3=function(e,t,n){var r,o;U1(e);try{if(!(r=d1(e,"return"))){if("throw"===t)throw n;return n}r=T0(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return U1(r),n},f3=D0.TypeError,d3=function(e,t){this.stopped=e,this.result=t},p3=d3.prototype,h3=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=o3(t,f),g=function(e){return r&&c3(r,"normal",e),new d3(!0,e)},y=function(e){return d?(U1(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=s3(e)))throw f3(l1(e)+" is not iterable");if(void 0!==(c=o)&&(l6.Array===c||a3[i3]===c)){for(i=0,a=D2(e);a>i;i++)if((u=y(e[i]))&&Z0(p3,u))return u;return new d3(!1)}r=function(e,t){var n=arguments.length<2?s3(e):t;if(f1(n))return U1(T0(n,e));throw l3(l1(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=T0(s,r)).done;){try{u=y(l.value)}catch(e){c3(r,"throw",e)}if("object"==typeof u&&u&&Z0(p3,u))return u}return new d3(!1)},v3=D0.TypeError,g3=function(e,t){if(Z0(t,e))return e;throw v3("Incorrect invocation")},y3=k1("iterator"),m3=!1;try{var b3=0,E3={next:function(){return{done:!!b3++}},return:function(){m3=!0}};E3[y3]=function(){return this},Array.from(E3,(function(){throw 2}))}catch(Ml){}var w3=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=D0[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=L0(u[e]);v2(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!K0(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!K0(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!K0(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if($2(e,!q0(a)||!(o||u.forEach&&!A0((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),n3.enable();else if($2(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=A0((function(){f.has(1)})),h=function(e,t){if(!m3)return!1;var n=!1;try{var r={};r[y3]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),v=!o&&A0((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){g3(e,u);var n=function(e,t,n){var r,o;return x6&&q0(r=t.constructor)&&r!==n&&K0(o=r.prototype)&&o!==n.prototype&&x6(e,o),e}(new a,e,s);return null!=t&&h3(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,G2({global:!0,forced:s!=a},l),w6(s,e),o||n.setStrong(s,e,r),s},S3=function(e,t,n){for(var r in t)v2(e,r,t[r],n);return e},C3=k1("species"),D3=D0.Array,A3=function(e,t){return new(function(e){var t;return R4(e)&&(t=e.constructor,($4(t)&&(t===D3||R4(t.prototype))||K0(t)&&null===(t=t[C3]))&&(t=void 0)),void 0===t?D3:t}(e))(0===t?0:t)},x3=L0([].push),O3=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=b1(s),v=$0(h),g=o3(l,c),y=D2(v),m=0,b=f||A3,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:x3(E,d)}else switch(e){case 4:return!1;case 7:x3(E,d)}return i?-1:r||o?o:E}},T3={forEach:O3(0),map:O3(1),filter:O3(2),some:O3(3),every:O3(4),find:O3(5),findIndex:O3(6),filterReject:O3(7)},N3=n3.getWeakData,k3=c2.set,B3=c2.getterFor,I3=T3.find,F3=T3.findIndex,P3=L0([].splice),R3=0,_3=function(e){return e.frozen||(e.frozen=new L3)},L3=function(){this.entries=[]},j3=function(e,t){return I3(e.entries,(function(e){return e[0]===t}))};L3.prototype={get:function(e){var t=j3(this,e);if(t)return t[1]},has:function(e){return!!j3(this,e)},set:function(e,t){var n=j3(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=F3(this.entries,(function(t){return t[0]===e}));return~t&&P3(this.entries,t,1),!!~t}};var M3={getConstructor:function(e,t,n,r){var o=e((function(e,o){g3(e,i),k3(e,{type:t,id:R3++,frozen:void 0}),null!=o&&h3(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=B3(t),u=function(e,t,n){var r=a(e),o=N3(U1(t),!0);return!0===o?_3(r).set(t,n):o[r.id]=n,e};return S3(i,{delete:function(e){var t=a(this);if(!K0(e))return!1;var n=N3(e);return!0===n?_3(t).delete(e):n&&w1(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!K0(e))return!1;var n=N3(e);return!0===n?_3(t).has(e):n&&w1(n,t.id)}}),S3(i,n?{get:function(e){var t=a(this);if(K0(e)){var n=N3(e);return!0===n?_3(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}};w3("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),M3);var z3={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},H3=_1("span").classList,U3=H3&&H3.constructor&&H3.constructor.prototype,$3=U3===Object.prototype?void 0:U3,V3=k1("iterator"),G3=k1("toStringTag"),W3=_6.values,q3=function(e,t){if(e){if(e[V3]!==W3)try{W1(e,V3,W3)}catch(t){e[V3]=W3}if(e[G3]||W1(e,G3,t),z3[t])for(var n in _6)if(e[n]!==_6[n])try{W1(e,n,_6[n])}catch(t){e[n]=_6[n]}}};for(var K3 in z3)q3(D0[K3]&&D0[K3].prototype,K3);q3($3,"DOMTokenList");var Y3,X3=c2.enforce,Z3=!D0.ActiveXObject&&"ActiveXObject"in D0,J3=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Q3=w3("WeakMap",J3,M3);if(Q1&&Z3){Y3=M3.getConstructor(J3,"WeakMap",!0),n3.enable();var e5=Q3.prototype,t5=L0(e5.delete),n5=L0(e5.has),r5=L0(e5.get),o5=L0(e5.set);S3(e5,{delete:function(e){if(K0(e)&&!e3(e)){var t=X3(this);return t.frozen||(t.frozen=new Y3),t5(this,e)||t.frozen.delete(e)}return t5(this,e)},has:function(e){if(K0(e)&&!e3(e)){var t=X3(this);return t.frozen||(t.frozen=new Y3),n5(this,e)||t.frozen.has(e)}return n5(this,e)},get:function(e){if(K0(e)&&!e3(e)){var t=X3(this);return t.frozen||(t.frozen=new Y3),n5(this,e)?r5(this,e):t.frozen.get(e)}return r5(this,e)},set:function(e,t){if(K0(e)&&!e3(e)){var n=X3(this);n.frozen||(n.frozen=new Y3),n5(this,e)?o5(this,e,t):n.frozen.set(e,t)}else o5(this,e,t);return this}})}var i5=new WeakMap,a5=new WeakMap,u5=T3.map,s5=W4("map");G2({target:"Array",proto:!0,forced:!s5},{map:function(e){return u5(this,e,arguments.length>1?arguments[1]:void 0)}});var l5=x2.includes;G2({target:"Array",proto:!0},{includes:function(e){return l5(this,e,arguments.length>1?arguments[1]:void 0)}}),s6("includes");var c5=k1("match"),f5=function(e){var t;return K0(e)&&(void 0!==(t=e[c5])?!!t:"RegExp"==z0(e))},d5=D0.TypeError,p5=function(e){if(f5(e))throw d5("The method doesn't accept regular expressions");return e},h5=k1("match"),v5=L0("".indexOf);G2({target:"String",proto:!0,forced:!function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[h5]=!1,"/./"[e](t)}catch(e){}}return!1}("includes")},{includes:function(e){return!!~v5(Q2(G0(this)),Q2(p5(e)),arguments.length>1?arguments[1]:void 0)}});var g5={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function y5(e){return!Nf.isEditor(e)&&Cf.isElement(e)&&"type"in e}function m5(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=g5,o=t.map((function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]}));return function(e){return y5(e)&&o.includes(e.type)}}function b5(e,t){for(var n=t6(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u=t6(Rf.common(e,r,o),2),s=u[0],l=u[1];return!!m5.apply(void 0,n6([e],t6(i)))(s,l)||!!Nf.above(e,{match:m5.apply(void 0,n6([e],t6(i))),at:l})}function E5(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=e6(function(e,t){var n,r,o,i,a,u,s,l,c,f,d,p,h,v,g,y,m,b;return void 0===t&&(t={}),Q4(this,(function(E){switch(E.label){case 0:if(n=t6(Nf.nodes(e,{match:m5(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=t6(r,2),i=o[1],E.label=1;case 1:E.trys.push([1,6,7,8]),a=e6(Nf.nodes(e,{match:m5(e,"table"),at:i})),u=a.next(),E.label=2;case 2:if(u.done)return[3,5];s=t6(u.value,2),l=s[1],c=[];try{for(m=void 0,f=e6(Nf.nodes(e,{match:m5(e,"tr"),at:l})),d=f.next();!d.done;d=f.next())p=t6(d.value,2),h=p[1],c.push(n6([],t6(Nf.nodes(e,{match:m5(e,"th","td"),at:h}))))}catch(e){m={error:e}}finally{try{d&&!d.done&&(b=f.return)&&b.call(f)}finally{if(m)throw m.error}}return[4,c];case 3:E.sent(),E.label=4;case 4:return u=a.next(),[3,2];case 5:return[3,8];case 6:return v=E.sent(),g={error:v},[3,8];case 7:try{u&&!u.done&&(y=a.return)&&y.call(a)}finally{if(g)throw g.error}return[7];case 8:return[2]}}))}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var u=a.value,s=[],l=0;l<u.length;l++){s[l]||(s[l]=[]);for(var c=0;c<u[l].length;c++)for(var f=t6(u[l][c],1)[0],d=f.rowSpan,p=void 0===d?1:d,h=f.colSpan,v=void 0===h?1:h,g=0;g<v+0;g++)for(var y=0;y<p;y++)s[l+y]||(s[l+y]=[]),s[l+y][c+g]||(s[l+y][c+g]=[u[l+y][c+g],{rtl:g-0+1,ltr:v-g+0,ttb:y+1,btt:p-y}])}o.push.apply(o,n6([],t6(s)))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var w5=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}(),S5={isInTable:function(e,t){return void 0===t&&(t={}),!!t6(Nf.nodes(e,{match:m5(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,u,s;return Q4(this,(function(l){switch(l.label){case 0:t=i5.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o++)i=t6(t[n][o],2),a=i[0],u=i[1],s=u.ltr,1===u.ttb&&r.push(a),o+=s-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n++,[3,1];case 4:return[2]}}))},unselect:function(e){var t;a5.delete(e),i5.delete(e),null===(t=document.getSelection())||void 0===t||t.removeAllRanges()},isSelected:function(e,t){var n=a5.get(e);return!!n&&n.has(t)}};function C5(e){var t=e.selection;if(null==t)return!1;var n=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=t6(n,2)[1],o=Nf.start(e,r);if($f.equals(t.anchor,o))return!0}return!1}function D5(e,t){var n,r,o=Nf.nodes(e,{at:t,match:function(e){return"table"===QO.getNodeType(e)}}),i=!1;try{for(var a=e6(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}var A5=T3.find,x5=!0;"find"in[]&&Array(1).find((function(){x5=!1})),G2({target:"Array",proto:!0,forced:x5},{find:function(e){return A5(this,e,arguments.length>1?arguments[1]:void 0)}}),s6("find");var O5=Function.prototype,T5=O5.apply,N5=O5.bind,k5=O5.call,B5="object"==typeof Reflect&&Reflect.apply||(N5?k5.bind(T5):function(){return k5.apply(T5,arguments)}),I5=k1("species"),F5=RegExp.prototype,P5=function(e,t,n,r){var o=k1(e),i=!A0((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!A0((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[I5]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||n){var u=L0(/./[o]),s=t(o,""[e],(function(e,t,n,r,o){var a=L0(e),s=t.exec;return s===P4||s===F5.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));v2(String.prototype,e,s[0]),v2(F5,o,s[1])}r&&W1(F5[o],"sham",!0)},R5=D0.TypeError,_5=k1("species"),L5=U6.charAt,j5=function(e,t,n){return t+(n?L5(e,t).length:1)},M5=D0.TypeError,z5=function(e,t){var n=e.exec;if(q0(n)){var r=T0(n,e,t);return null!==r&&U1(r),r}if("RegExp"===z0(e))return T0(P4,e,t);throw M5("RegExp#exec called on incompatible receiver")},H5=u4.UNSUPPORTED_Y,U5=Math.min,$5=[].push,V5=L0(/./.exec),G5=L0($5),W5=L0("".slice);P5("split",(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=Q2(G0(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!f5(e))return T0(t,r,e,o);for(var i,a,u,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=T0(P4,f,r))&&!((a=f.lastIndex)>c&&(G5(s,W5(r,c,i.index)),i.length>1&&i.index<r.length&&B5($5,s,K6(i,1)),u=i[0].length,c=a,s.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!u&&V5(f,"")||G5(s,""):G5(s,W5(r,c)),s.length>o?K6(s,0,o):s}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:T0(t,this,e,n)}:t,[function(t,n){var o=G0(this),i=null==t?void 0:d1(t,e);return i?T0(i,t,o,n):T0(r,Q2(o),t,n)},function(e,o){var i=U1(this),a=Q2(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=U1(e).constructor;return void 0===r||null==(n=U1(r)[_5])?t:function(e){if($4(e))return e;throw R5(l1(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(H5?"g":"y"),f=new s(H5?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===z5(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=H5?0:h;var g,y=z5(f,H5?W5(a,h):a);if(null===y||(g=U5(C2(f.lastIndex+(H5?h:0)),a.length))===p)h=j5(a,h,l);else{if(G5(v,W5(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(G5(v,y[m]),v.length===d)return v;h=p=g}}return G5(v,W5(a,p)),v}]}),!!A0((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),H5);var q5="\t\n\v\f\r \u2028\u2029\ufeff",K5=L0("".replace),Y5="["+q5+"]",X5=RegExp("^"+Y5+Y5+"*"),Z5=RegExp(Y5+Y5+"*$"),J5=function(e){return function(t){var n=Q2(G0(t));return 1&e&&(n=K5(n,X5,"")),2&e&&(n=K5(n,Z5,"")),n}},Q5={start:J5(1),end:J5(2),trim:J5(3)},e8=h2.PROPER,t8=Q5.trim;function n8(e){return e.length?e[0].tagName.toLowerCase():""}G2({target:"String",proto:!0,forced:function(e){return A0((function(){return!!q5[e]()||"
"!=="
"[e]()||e8&&q5[e].name!==e}))}("trim")},{trim:function(){return t8(this)}}),G2({global:!0},{globalThis:D0}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),Gp&&(Mp.fn.dataset=Gp),zp&&(Mp.fn.addClass=zp),Hp&&(Mp.fn.removeClass=Hp),fh&&(Mp.fn.children=fh),th&&(Mp.fn.each=th),ch&&(Mp.fn.find=ch);var r8=null,o8=!1,i8=!1,a8=0,u8=0,s8=null,l8=Mp(window);l8.on("mousedown",(function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))o8=!0;else if("DIV"==t.tagName&&t.closest(".column-resizer-item")){if(null==s8)return;var n=t6(Nf.nodes(s8,{match:m5(s8,"table")}),1),r=t6(n[0],1)[0],o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.resizingIndex,l=void 0===s?-1:s;if("100%"==i)return;i8=!0;var c=e.clientX;a8=c,u8=u[l],document.body.style.cursor="col-resize",e.preventDefault()}l8.on("mousemove",c8),l8.on("mouseup",f8)}));var c8=ev((function(e){if(i8&&null!=s8){e.preventDefault();var t=e.clientX,n=u8+(t-a8);(n=Math.floor(100*n)/100)<30&&(n=30);var r=t6(Nf.nodes(s8,{match:m5(s8,"table")}),1),o=t6(r[0],1)[0],i=o.columnWidths,a=void 0===i?[]:i,u=o.resizingIndex,s=void 0===u?-1:u,l=o.scrollWidth,c=void 0===l?0:l,f=a.reduce((function(e,t){return e+t}),0),d=f-a[s];f>c&&d+n>c&&(n=c-d+.5);var p=n6([],t6(a)).map((function(e){return Math.floor(e)}));p[s]=n,md.setNodes(s8,{columnWidths:p},{mode:"highest"})}}),100);function f8(e){o8=!1,i8=!1,s8=null,document.body.style.cursor="",l8.off("mousemove",c8),l8.off("mouseup",f8)}function d8(e,t){"mouseenter"===t.type?md.setNodes(e,{isResizing:!0},{mode:"highest"}):md.setNodes(e,{isResizing:!1},{mode:"highest"})}function p8(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function h8(e){return p8(e).every((function(e){return!!e.isHeader}))}var v8={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(qf.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=QO.findPath(e,t),a=Nf.start(e,i),u=Nf.end(e,i),s=$f.compare(r,u)<=0&&$f.compare(r,a)>=0,l=$f.compare(o,u)<=0&&$f.compare(o,a)>=0;return!!(s&&l&&Mf.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,u=o.height,s=o.columnWidths,l=void 0===s?[]:s,c=o.scrollWidth,f=void 0===c?0:c,d=o.isHoverCellBorder,p=o.resizingIndex,h=o.isResizing,v=QO.isNodeSelected(n,e),g=t6(S5.selection(n),1)[0],y=function(e){var t,n,r=[],o=e.reduce((function(e,t){return e+t}),0);try{for(var i=e6(e),a=i.next();!a.done;a=i.next()){var u=a.value;r.push(u/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(l),m=Fv("div",{className:"table-container","data-selected":v,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&S5.unselect(n);var r=QO.findPath(n,e),o=Nf.start(n,r),i=n.selection;null!=i?i.anchor.path[0]!==r[0]&&n.select(o):n.select(o)}}}},Fv("table",{width:a,contentEditable:r,className:"table "+(g?"table-selection-none":""),style:{width:"100%"==a?"":l.reduce((function(e,t){return e+t}),0)+"px"},on:{mousemove:Zg((function(t){return function(e,t,n){if(!e.isDisabled()&&!o8&&!i8){var r=t,o=r.width,i=void 0===o?"auto":o,a=r.columnWidths,u=void 0===a?[]:a,s=r.isHoverCellBorder,l=r.resizingIndex;if("100%"!=i){var c=n.clientX,f=n.target;if(f instanceof HTMLElement&&c>(h=f.getBoundingClientRect()).x+5&&c<h.x+h.width-5)return void(s&&md.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"}));if(f instanceof HTMLElement){var d=f.closest(".table");if(d)for(var p=n.clientX,h=d.getBoundingClientRect(),v=function(e){var t,n,r=[],o=0;try{for(var i=e6(e),a=i.next();!a.done;a=i.next())o+=a.value,r.push(o)}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(u),g=0;g<v.length;g++)if(p-h.x>=v[g]-5&&p-h.x<v[g]+5){if(l==g)return;return void md.setNodes(e,{isHoverCellBorder:!0,resizingIndex:g},{mode:"highest"})}}1==s&&md.setNodes(e,{isHoverCellBorder:!1,resizingIndex:-1},{mode:"highest"})}}}(n,e,t)}),25)}},Fv("colgroup",{contentEditable:!1},l.map((function(e){return Fv("col",{width:e})}))),Fv("tbody",null,t)),Fv("div",{className:"column-resizer",contenteditable:"false"},l.map((function(e,t){var r=e;return"100%"==a&&(r=y[t]*f),Fv("div",{className:"column-resizer-item",style:{minWidth:r+"px"}},Fv("div",{className:"resizer-line-hotzone "+(d&&t==p?"visible ":"")+(h&&t==p?"highlight":""),style:{height:u+"px"},on:{mouseenter:function(e){return d8(n,e)},mouseleave:function(e){return d8(n,e)},mousedown:function(e){return function(e,t){i8||(s8=e)}(n)}}},Fv("div",{className:"resizer-line"})))})))),b=pv("div",{hook:{insert:function(e){var t=e.elm;return function(e,t){if(t instanceof HTMLElement){var n=t.querySelector("table");n&&(r8=new ResizeObserver((function(t){var n=t6(t,1)[0].contentRect;md.setNodes(e,{scrollWidth:n.width,height:n.height},{mode:"highest"})}))).observe(n)}}(n,t)},destroy:function(){r8&&(null==r8||r8.disconnect(),r8=null)}}},m);return b}},g8={type:"table-row",renderElem:function(e,t,n){return Fv("tr",null,t)}},y8={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=QO.getParentNode(e,t);if(null==n)return!1;var r=QO.getParentNode(e,n);return null!=r&&p8(r).some((function(e){return e===t}))}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,u=o.rowSpan,s=void 0===u?1:u,l=o.isHeader,c=void 0!==l&&l,f=o.hidden,d=void 0!==f&&f;return Fv(r&&c?"th":"td",{colSpan:a,rowSpan:s,"data-block-type":"table-cell",className:S5.isSelected(n,e)?"w-e-selected":"",style:{display:d?"none":""}},t)}},m8={selector:"table",preParseHtml:function(e){var t=Mp(e);if("table"!==n8(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");return t.append(r),n.remove(),t[0]}},b8=T3.filter,E8=W4("filter");G2({target:"Array",proto:!0,forced:!E8},{filter:function(e){return b8(this,e,arguments.length>1?arguments[1]:void 0)}});var w8=Math.floor,S8=L0("".charAt),C8=L0("".replace),D8=L0("".slice),A8=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,x8=/\$([$&'`]|\d{1,2})/g,O8=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=x8;return void 0!==o&&(o=b1(o),s=A8),C8(i,s,(function(i,s){var l;switch(S8(s,0)){case"$":return"$";case"&":return e;case"`":return D8(t,0,n);case"'":return D8(t,a);case"<":l=o[D8(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=w8(c/10);return 0===f?i:f<=u?void 0===r[f-1]?S8(s,1):r[f-1]+S8(s,1):i}l=r[c-1]}return void 0===l?"":l}))},T8=k1("replace"),N8=Math.max,k8=Math.min,B8=L0([].concat),I8=L0([].push),F8=L0("".indexOf),P8=L0("".slice),R8="$0"==="a".replace(/./,"$0"),_8=!!/./[T8]&&""===/./[T8]("a","$0");P5("replace",(function(e,t,n){var r=_8?"$":"$0";return[function(e,n){var r=G0(this),o=null==e?void 0:d1(e,T8);return o?T0(o,e,r,n):T0(t,Q2(r),e,n)},function(e,o){var i=U1(this),a=Q2(e);if("string"==typeof o&&-1===F8(o,r)&&-1===F8(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=q0(o);s||(o=Q2(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=z5(i,a);if(null===d)break;if(I8(f,d),!l)break;""===Q2(d[0])&&(i.lastIndex=j5(a,C2(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Q2((d=f[g])[0]),m=N8(k8(m2(d.index),a.length),0),b=[],E=1;E<d.length;E++)I8(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=B8([y],b,m,a);void 0!==w&&I8(S,w);var C=Q2(B5(o,void 0,S))}else C=O8(y,a,m,b,w,o);m>=v&&(h+=P8(a,v,m)+C,v=m+y.length)}return h+P8(a,v)}]}),!!A0((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!R8||_8);var L8={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e);0===(t=t.filter((function(e){return!!ed.isText(e)||!!n.isInline(e)}))).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]);var o=parseInt(r.attr("colSpan")||"1"),i=parseInt(r.attr("rowSpan")||"1"),a=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===n8(r),colSpan:o,rowSpan:i,width:a,children:t}}},j8={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){return{type:"table-row",children:t.filter((function(e){return"table-cell"===QO.getNodeType(e)}))}}},M8={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Mp(e),o="auto";return"100%"===function(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i++){var a=r[i];if(a){var u=a.split(":");"width"===u[0].trim()&&(n=u[1].trim())}}return n}(r)&&(o="100%"),"100%"===r.attr("width")&&(o="100%"),{type:"table",width:o,children:t.filter((function(e){return"table-row"===QO.getNodeType(e)}))}}};G2({target:"Array",proto:!0},{fill:function(e){for(var t=b1(this),n=D2(t),r=arguments.length,o=w2(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,a=void 0===i?n:w2(i,n);a>o;)t[o++]=e;return t}}),s6("fill");var z8=h2.PROPER,H8=RegExp.prototype,U8=H8.toString,$8=L0(r4),V8=A0((function(){return"/a/b"!=U8.call({source:"a",flags:"b"})})),G8=z8&&"toString"!=U8.name;(V8||G8)&&v2(RegExp.prototype,"toString",(function(){var e=U1(this),t=Q2(e.source),n=e.flags;return"/"+t+"/"+Q2(void 0===n&&Z0(H8,e)&&!("flags"in H8)?$8(e):n)}),{unsafe:!0});var W8=function(){function e(){this.title=UF("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!QO.getSelectedElems(e).some((function(t){var n=QO.getNodeType(t);return"pre"===n||"table"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Mp('<div class="w-e-panel-content-table"></div>'),r=Mp("<span>0 × 0</span>"),o=Mp("<table></table>"),i=0;i<10;i++){for(var a=Mp("<tr></tr>"),u=0;u<10;u++){var s=Mp("<td></td>");s.attr("data-x",u.toString()),s.attr("data-y",i.toString()),a.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Mp(t).dataset(),i=n.x,a=n.y;r[0].innerHTML=i+1+" × "+(a+1),o.children().each((function(e){Mp(e).children().each((function(e){var t=Mp(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("click",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Mp(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){QO.isSelectedEmptyParagraph(e)&&md.removeNodes(e,{mode:"highest"});var i=function(e,t){for(var n=[],r=Array(t).fill(60),o=0;o<e;o++){for(var i=[],a=0;a<t;a++){var u={type:"table-cell",children:[{text:""}]};0===o&&(u.isHeader=!0),i.push(u)}n.push({type:"table-row",children:i})}return{type:"table",width:"auto",children:n,columnWidths:r}}(r,o);md.insertNodes(e,i,{mode:"highest"})}},e}(),q8=function(){function e(){this.title=UF("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==QO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||md.removeNodes(e,{mode:"highest"})},e}(),K8=function(){function e(){this.title=UF("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-cell")},universal:!0}),1),r=t6(n[0],2),o=r[0],i=r[1],a=QO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(0!==u){var s=E5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=t6(s[c][f],1),p=t6(d[0],2)[1];if(Mf.equals(i,p)){l=c;break e}}Nf.withoutNormalizing(e,(function(){for(var t=l+1,n=t>=0&&t<s.length,r=[],o=0;n&&o<s[l].length;o++){var a=t6(s[l][o],2)[1],c=a.ttb,f=a.btt;if(c>1||f>1){if(1==f)continue;var d=t6(s[l-(c-1)][o],1),p=t6(d[0],2),h=p[0],v=p[1],g=h.rowSpan||1;r.push(o),h.hidden||md.setNodes(e,{rowSpan:g+1},{at:v})}}for(var y={type:"table-row",children:[]},m=0;m<u;m++){var b={type:"table-cell",hidden:r.includes(m),children:[{text:""}]};y.children.push(b)}var E=Mf.parent(i),w=Mf.next(E);md.insertNodes(e,y,{at:w})}))}}},e}(),Y8=function(){function e(){this.title=UF("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-row")},universal:!0}),1),r=t6(n[0],2),o=r[0],i=r[1],a=QO.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)md.removeNodes(e,{mode:"highest"});else{var u=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-cell")},universal:!0}),1),s=t6(u[0],2)[1],l=E5(e),c=0;e:for(var f=0;f<l.length;f++)for(var d=0;d<l[f].length;d++){var p=t6(l[f][d],1),h=t6(p[0],2)[1];if(Mf.equals(s,h)){c=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<l[c].length;r++){var o=t6(l[c][r],2),a=t6(o[0],1)[0].hidden,u=o[1],s=u.ttb,f=u.btt;if(s>1||f>1){var d=t6(l[c-(s-1)][r],1),p=t6(d[0],2),h=p[0],v=h.rowSpan,g=void 0===v?1:v,y=h.colSpan,m=void 0===y?1:y,b=p[1];if(a)md.setNodes(e,{rowSpan:Math.max(g-1,1),colSpan:m},{at:b});else{var E=t6(l[c+1][r],1),w=t6(E[0],2)[1];md.setNodes(e,{rowSpan:g-1,colSpan:m,hidden:!1},{at:w});try{for(var S=(t=void 0,e6(Rf.children(e,b,{reverse:!0}))),C=S.next();!C.done;C=S.next()){var D=t6(C.value,2)[1];md.moveNodes(e,{to:n6(n6([],t6(w)),[0]),at:D})}}catch(e){t={error:e}}finally{try{C&&!C.done&&(n=S.return)&&n.call(S)}finally{if(t)throw t.error}}}}}md.removeNodes(e,{at:i})}))}}},e}(),X8=W4("splice"),Z8=D0.TypeError,J8=Math.max,Q8=Math.min;G2({target:"Array",proto:!0,forced:!X8},{splice:function(e,t){var n,r,o,i,a,u,s=b1(this),l=D2(s),c=w2(e,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-c):(n=f-2,r=Q8(J8(m2(t),0),l-c)),l+n-r>9007199254740991)throw Z8("Maximum allowed length exceeded");for(o=A3(s,r),i=0;i<r;i++)(a=c+i)in s&&V4(o,i,s[a]);if(o.length=r,n<r){for(i=c;i<l-r;i++)u=i+n,(a=i+r)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-r+n;i--)delete s[i-1]}else if(n>r)for(i=l-r;i>c;i--)u=i+n-1,(a=i+r-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<n;i++)s[i+c]=arguments[i+2];return s.length=l-r+n,o}});var e7=function(){function e(){this.title=UF("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-cell")},universal:!0}),1),r=t6(n[0],2),o=r[0],i=r[1],a=QO.getParentNode(e,o);if(null!=a){var u=QO.getParentNode(e,a);if(null!=u){var s=E5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=t6(s[c][f],1),p=t6(d[0],2)[1];if(Mf.equals(i,p)){l=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t=[],n=0;n<s.length;n++){var r=t6(s[n][l],2)[1],o=r.ltr,i=r.rtl;if(o>1||i>1){if(1==i)continue;var a=t6(s[n][l-(i-1)],1),c=t6(a[0],2),f=c[0],d=c[1],p=f.colSpan||1;t.push(n),f.hidden||md.setNodes(e,{colSpan:p+1},{at:d})}}for(n=0;n<s.length;n++){var h={type:"table-cell",hidden:t.includes(n),children:[{text:""}]};0===n&&h8(u)&&(h.isHeader=!0);var v=t6(s[n][l],1),g=t6(v[0],2)[1];md.insertNodes(e,h,{at:g})}var y=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table")},universal:!0}),1)[0];if(y){var m=t6(y,2),b=m[0],E=m[1],w=b.columnWidths,S=n6([],t6(void 0===w?[]:w));S.splice(l,0,60),md.setNodes(e,{columnWidths:S},{at:E})}}))}}}},e}(),t7=function(){function e(){this.title=UF("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table-cell")},universal:!0}),1),r=t6(n[0],2),o=r[0],i=r[1],a=QO.getParentNode(e,o),u=(null==a?void 0:a.children.length)||0;if(!a||u<=1)md.removeNodes(e,{mode:"highest"});else if(null!=QO.getParentNode(e,a)){var s=E5(e),l=0;e:for(var c=0;c<s.length;c++)for(var f=0;f<s[c].length;f++){var d=t6(s[c][f],1),p=t6(d[0],2)[1];if(Mf.equals(i,p)){l=f;break e}}Nf.withoutNormalizing(e,(function(){for(var t,n,r=0;r<s.length;r++){var o=t6(s[r][l],2),i=t6(o[0],1)[0].hidden,a=o[1],u=a.rtl,c=a.ltr;if(u>1||c>1){var f=t6(s[r][l-(u-1)],1),d=t6(f[0],2),p=d[0],h=p.rowSpan,v=void 0===h?1:h,g=p.colSpan,y=void 0===g?1:g,m=d[1];if(i)md.setNodes(e,{rowSpan:v,colSpan:Math.max(y-1,1)},{at:m});else{var b=t6(s[r][l+1],1),E=t6(b[0],2)[1];md.setNodes(e,{rowSpan:v,colSpan:y-1,hidden:!1},{at:E});try{for(var w=(t=void 0,e6(Rf.children(e,m,{reverse:!0}))),S=w.next();!S.done;S=w.next()){var C=t6(S.value,2)[1];md.moveNodes(e,{to:n6(n6([],t6(E)),[0]),at:C})}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=w.return)&&n.call(w)}finally{if(t)throw t.error}}}}}for(r=0;r<s.length;r++){var D=t6(s[r][l],1);m=t6(D[0],2)[1],md.removeNodes(e,{at:m})}var A=t6(Nf.nodes(e,{match:function(e){return QO.checkNodeType(e,"table")},universal:!0}),1)[0];if(A){var x=t6(A,2),O=x[0],T=x[1],N=O.columnWidths,k=n6([],t6(void 0===N?[]:N));k.splice(l,1),md.setNodes(e,{columnWidths:k},{at:T})}}))}}},e}(),n7=T3.forEach,r7=function(e,t){var n=[].forEach;return!!n&&A0((function(){n.call(null,(function(){throw 1}),1)}))}(),o7=r7?[].forEach:function(e){return n7(this,e,arguments.length>1?arguments[1]:void 0)},i7=function(e){if(e&&e.forEach!==o7)try{W1(e,"forEach",o7)}catch(t){e.forEach=o7}};for(var a7 in z3)z3[a7]&&i7(D0[a7]&&D0[a7].prototype);i7($3);var u7=function(){function e(){this.title=UF("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=QO.getSelectedNodeByType(e,"table");return null!=t&&h8(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=QO.getSelectedNodeByType(e,"table");null!=r&&p8(r).forEach((function(t){return md.setNodes(e,{isHeader:n},{at:QO.findPath(e,t)})}))}},e}(),s7=function(){function e(){this.title=UF("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=QO.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||null==QO.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?"auto":"100%"};md.setNodes(e,n,{mode:"highest"})}},e}(),l7=function(){function e(){this.title=UF("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),S5.unselect(e))},e.prototype.canMerge=function(e){var t=i5.get(e);if(!t||!t.length)return!1;var n=t6(t[t.length-1][t[t.length-1].length-1],1),r=t6(n[0],2)[1],o=t6(t[0][0],1);return!!b5(e,[t6(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=i5.get(e);if(t&&t.length){var n=t6(t[0][0],1),r=t6(n[0],2)[1],o=t6(Rf.children(e,r,{reverse:!0}),1),i=t6(o[0],2)[1];E5(e,{at:r}),Nf.withoutNormalizing(e,(function(){for(var n,o,a=0,u=0,s=t.length-1;s>=0;s--,a++){u=0;for(var l=t[s].length-1;l>=0;l--,u++){var c=t6(t[s][l],2),f=t6(c[0],2)[1],d=c[1].ttb;if(!(Mf.equals(r,f)||d>1)){try{for(var p=(n=void 0,e6(Rf.children(e,f,{reverse:!0}))),h=p.next();!h.done;h=p.next()){var v=t6(h.value,2)[1];md.moveNodes(e,{to:Mf.next(i),at:v})}}catch(e){n={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}var g=t6(Nf.nodes(e,{match:m5(e,"tr"),at:f}),1),y=t6(g[0],2)[1];t6(Rf.children(e,y),2)[1]&&md.setNodes(e,{hidden:!0},{at:f})}}}md.setNodes(e,{rowSpan:a,colSpan:u},{at:r})}))}}},e}(),c7=function(){function e(){this.title=UF("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=t6(Nf.nodes(e,{match:m5(e,"td")}),1),n=t6(t[0],1)[0],r=n.rowSpan,o=void 0===r?1:r,i=n.colSpan;return!(o>1||(void 0===i?1:i)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=t6(Nf.nodes(e,{match:m5(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=i5.get(e)||[],a=E5(e,{at:t.at});Nf.withoutNormalizing(e,(function(){for(var n=a.length-1;n>=0;n--)for(var r=a[n].length-1;r>=0;r--){var u=t6(a[n][r],2),s=t6(u[0],2)[1],l=u[1],c=l.ltr,f=l.rtl,d=l.btt,p=l.ttb;if(f>1)r-=f-2;else if(!(p>1||1===d&&1===c)){var h=!!t.all;if(i.length)e:for(var v=0;!t.all&&v<i.length;v++)for(var g=0;g<i[v].length;g++){var y=t6(i[v][g],1),m=t6(y[0],2)[1];if(Mf.equals(m,s)){h=!0;break e}}else m=t6(o,2)[1],Mf.equals(m,s)&&(h=!0);if(h){var b=t6(Nf.nodes(e,{match:m5(e,"table"),at:s}),1);t6(b[0],1)[0];e:for(var E=1;E<d;E++)for(v=r;v>=0;v--){var w=t6(a[n+E][v],2);if(t6(w[0],2)[1],1!=w[1].ttb){for(var S=0;S<c;S++){var C=t6(a[n+E][v+S],1),D=t6(C[0],2)[1];md.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}continue e}}for(S=1;S<c;S++){var A=t6(a[n][r+S],1);D=t6(A[0],2)[1],md.unsetNodes(e,["hidden","colSpan","rowSpan"],{at:D})}md.setNodes(e,{rowSpan:1,colSpan:1},{at:s})}}}}))}},e}(),f7={renderElems:[v8,g8,y8],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var n=e.width;return'<table style="width: '+(void 0===n?"auto":n)+';table-layout: fixed;"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,u=n.isHeader,s=void 0!==u&&u,l=n.width,c=void 0===l?"auto":l,f=n.hidden,d=s?"th":"td";return"<"+d+' colSpan="'+o+'" rowSpan="'+a+'" width="'+c+'" style="'+(void 0!==f&&f?"display:none":"")+'">'+t+"</"+d+">"}}],preParseHtml:[m8],parseElemsHtml:[L8,j8,M8],menus:[{key:"insertTable",factory:function(){return new W8}},{key:"deleteTable",factory:function(){return new q8}},{key:"insertTableRow",factory:function(){return new K8}},{key:"deleteTableRow",factory:function(){return new Y8}},{key:"insertTableCol",factory:function(){return new e7}},{key:"deleteTableCol",factory:function(){return new t7}},{key:"tableHeader",factory:function(){return new u7}},{key:"tableFullWidth",factory:function(){return new s7}},{key:"mergeTableCell",factory:function(){return new l7}},{key:"splitTableCell",factory:function(){return new c7}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){null==QO.getSelectedNodeByType(s,"table")?t():s.insertText("\n")},s.deleteBackward=function(e){if(!C5(s)){var t=s.selection;if(t){var r=Nf.before(s,t);if(r){var o=D5(s,r),i=D5(s,t);if(o&&!i)return}}n(e)}},s.handleTab=function(){var t;if(QO.getSelectedNodeByType(s,"table")){var n=Nf.above(e);QO.checkNodeType(n[0],"table-cell")&&md.select(e,n[1]);var r=Nf.next(e);if(r)r[0]&&r[0].text&&(r=null!==(t=Nf.above(e,{at:r[1]}))&&void 0!==t?t:r),md.select(e,r[1]);else{var o=s.children||[],i=o.length;if(QO.checkNodeType(o[i-1],"table")){var u=QO.genEmptyParagraph();md.insertNodes(s,u,{at:[i]}),s.handleTab()}}}else a()},s.deleteForward=function(e){C5(s)||r(e)},s.normalizeNode=function(e){var t=t6(e,2),n=t[0],r=t[1];if("table"!==QO.getNodeType(n))return o([n,r]);if(QO.isLastNode(s,n)){var i=QO.genEmptyParagraph();md.insertNodes(s,i,{at:[r[0]+1]})}},s.insertData=function(e){if(null!=QO.getSelectedNodeByType(s,"table")){var t=e.getData("text/plain");"\n"===t||/<img[^>]+>/.test(e.getData("text/html"))?i(e):Nf.insertText(s,t)}else i(e)},s.selectAll=function(){var e=s.selection;if(null!=e){var t=QO.getSelectedNodeByType(s,"table-cell");if(null!=t){var n=e.anchor,r=e.focus;if(Mf.equals(n.path.slice(0,3),r.path.slice(0,3)))if(0!==Rf.string(t).length){var o=QO.findPath(s,t),i={anchor:Nf.start(s,o),focus:Nf.end(s,o)};s.select(i)}else u();else u()}else u()}else u()},function(e){var t=e.apply;e.apply=function(n){if(!jf.isSelectionOperation(n)||!n.newProperties)return t(n);var r=J4(J4({},e.selection),n.newProperties);if(!qf.isRange(r))return S5.unselect(e),t(n);var o=t6(Nf.nodes(e,{match:m5(e,"th","td"),at:qf.start(r)}),1)[0],i=t6(Nf.nodes(e,{match:m5(e,"th","td"),at:qf.end(r)}),1)[0];if(!o||!i)return S5.unselect(e),t(n);var a=t6(o,2)[1],u=t6(i,2)[1];if(Mf.equals(a,u)||!b5(e,[a,u],"table"))return S5.unselect(e),t(n);var s=E5(e,{at:a}),l=w5.valueOf(0,0),c=w5.valueOf(0,0);e:for(var f=0;f<s.length;f++)for(var d=0;d<s[f].length;d++){var p=t6(s[f][d],1),h=t6(p[0],2)[1];if(Mf.equals(a,h)&&(l.x=f,l.y=d),Mf.equals(u,h)){c.x=f,c.y=d;break e}}for(var v=w5.valueOf(Math.min(l.x,c.x),Math.min(l.y,c.y)),g=w5.valueOf(Math.max(l.x,c.x),Math.max(l.y,c.y));;){var y=w5.valueOf(v.x,v.y),m=w5.valueOf(g.x,g.y);for(f=y.x;f<=m.x;f++)for(d=y.y;d<=m.y;d++){var b=t6(s[f][d],2)[1],E=b.rtl,w=b.ltr,S=b.btt,C=b.ttb;y.x=Math.min(y.x,f-(C-1)),y.y=Math.min(y.y,d-(E-1)),m.x=Math.max(m.x,f+(S-1)),m.y=Math.max(m.y,d+(w-1))}if(w5.equals(v,y)&&w5.equals(g,m))break;v=y,g=m}var D=[],A=new WeakSet;for(f=v.x;f<=g.x;f++){var x=[];for(d=v.y;d<=g.y;d++){var O=t6(s[f][d],1),T=t6(O[0],1)[0];A.add(T),x.push(s[f][d])}D.push(x)}i5.set(e,D),a5.set(e,A),t(n)}}(s),s}};MF("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height"}}),MF("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度"}});var d7=function(){return d7=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},d7.apply(this,arguments)};function p7(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function h7(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function v7(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g7(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var y7="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function m7(e){var t={exports:{}};return e(t,t.exports),t.exports}var b7,E7,w7=function(e){return e&&e.Math==Math&&e},S7=w7("object"==typeof globalThis&&globalThis)||w7("object"==typeof window&&window)||w7("object"==typeof self&&self)||w7("object"==typeof y7&&y7)||function(){return this}()||Function("return this")(),C7=function(e){try{return!!e()}catch(e){return!0}},D7=!C7((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),A7=Function.prototype.call,x7=A7.bind?A7.bind(A7):function(){return A7.apply(A7,arguments)},O7={}.propertyIsEnumerable,T7=Object.getOwnPropertyDescriptor,N7={f:T7&&!O7.call({1:2},1)?function(e){var t=T7(this,e);return!!t&&t.enumerable}:O7},k7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},B7=Function.prototype,I7=B7.bind,F7=B7.call,P7=I7&&I7.bind(F7),R7=I7?function(e){return e&&P7(F7,e)}:function(e){return e&&function(){return F7.apply(e,arguments)}},_7=R7({}.toString),L7=R7("".slice),j7=function(e){return L7(_7(e),8,-1)},M7=S7.Object,z7=R7("".split),H7=C7((function(){return!M7("z").propertyIsEnumerable(0)}))?function(e){return"String"==j7(e)?z7(e,""):M7(e)}:M7,U7=S7.TypeError,$7=function(e){if(null==e)throw U7("Can't call method on "+e);return e},V7=function(e){return H7($7(e))},G7=function(e){return"function"==typeof e},W7=function(e){return"object"==typeof e?null!==e:G7(e)},q7=function(e){return G7(e)?e:void 0},K7=function(e,t){return arguments.length<2?q7(S7[e]):S7[e]&&S7[e][t]},Y7=R7({}.isPrototypeOf),X7=K7("navigator","userAgent")||"",Z7=S7.process,J7=S7.Deno,Q7=Z7&&Z7.versions||J7&&J7.version,e9=Q7&&Q7.v8;e9&&(E7=(b7=e9.split("."))[0]>0&&b7[0]<4?1:+(b7[0]+b7[1])),!E7&&X7&&(!(b7=X7.match(/Edge\/(\d+)/))||b7[1]>=74)&&(b7=X7.match(/Chrome\/(\d+)/))&&(E7=+b7[1]);var t9=E7,n9=!!Object.getOwnPropertySymbols&&!C7((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t9&&t9<41})),r9=n9&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,o9=S7.Object,i9=r9?function(e){return"symbol"==typeof e}:function(e){var t=K7("Symbol");return G7(t)&&Y7(t.prototype,o9(e))},a9=S7.String,u9=function(e){try{return a9(e)}catch(e){return"Object"}},s9=S7.TypeError,l9=function(e){if(G7(e))return e;throw s9(u9(e)+" is not a function")},c9=function(e,t){var n=e[t];return null==n?void 0:l9(n)},f9=S7.TypeError,d9=Object.defineProperty,p9=function(e,t){try{d9(S7,e,{value:t,configurable:!0,writable:!0})}catch(n){S7[e]=t}return t},h9=S7["__core-js_shared__"]||p9("__core-js_shared__",{}),v9=m7((function(e){(e.exports=function(e,t){return h9[e]||(h9[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),g9=S7.Object,y9=function(e){return g9($7(e))},m9=R7({}.hasOwnProperty),b9=Object.hasOwn||function(e,t){return m9(y9(e),t)},E9=0,w9=Math.random(),S9=R7(1..toString),C9=function(e){return"Symbol("+(void 0===e?"":e)+")_"+S9(++E9+w9,36)},D9=v9("wks"),A9=S7.Symbol,x9=A9&&A9.for,O9=r9?A9:A9&&A9.withoutSetter||C9,T9=function(e){if(!b9(D9,e)||!n9&&"string"!=typeof D9[e]){var t="Symbol."+e;n9&&b9(A9,e)?D9[e]=A9[e]:D9[e]=r9&&x9?x9(t):O9(t)}return D9[e]},N9=S7.TypeError,k9=T9("toPrimitive"),B9=function(e){var t=function(e,t){if(!W7(e)||i9(e))return e;var n,r=c9(e,k9);if(r){if(void 0===t&&(t="default"),n=x7(r,e,t),!W7(n)||i9(n))return n;throw N9("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&G7(n=e.toString)&&!W7(r=x7(n,e)))return r;if(G7(n=e.valueOf)&&!W7(r=x7(n,e)))return r;if("string"!==t&&G7(n=e.toString)&&!W7(r=x7(n,e)))return r;throw f9("Can't convert object to primitive value")}(e,t)}(e,"string");return i9(t)?t:t+""},I9=S7.document,F9=W7(I9)&&W7(I9.createElement),P9=function(e){return F9?I9.createElement(e):{}},R9=!D7&&!C7((function(){return 7!=Object.defineProperty(P9("div"),"a",{get:function(){return 7}}).a})),_9=Object.getOwnPropertyDescriptor,L9={f:D7?_9:function(e,t){if(e=V7(e),t=B9(t),R9)try{return _9(e,t)}catch(e){}if(b9(e,t))return k7(!x7(N7.f,e,t),e[t])}},j9=S7.String,M9=S7.TypeError,z9=function(e){if(W7(e))return e;throw M9(j9(e)+" is not an object")},H9=S7.TypeError,U9=Object.defineProperty,$9={f:D7?U9:function(e,t,n){if(z9(e),t=B9(t),z9(n),R9)try{return U9(e,t,n)}catch(e){}if("get"in n||"set"in n)throw H9("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},V9=D7?function(e,t,n){return $9.f(e,t,k7(1,n))}:function(e,t,n){return e[t]=n,e},G9=R7(Function.toString);G7(h9.inspectSource)||(h9.inspectSource=function(e){return G9(e)});var W9,q9,K9,Y9=h9.inspectSource,X9=S7.WeakMap,Z9=G7(X9)&&/native code/.test(Y9(X9)),J9=v9("keys"),Q9=function(e){return J9[e]||(J9[e]=C9(e))},eee={},tee=S7.TypeError,nee=S7.WeakMap;if(Z9||h9.state){var ree=h9.state||(h9.state=new nee),oee=R7(ree.get),iee=R7(ree.has),aee=R7(ree.set);W9=function(e,t){if(iee(ree,e))throw new tee("Object already initialized");return t.facade=e,aee(ree,e,t),t},q9=function(e){return oee(ree,e)||{}},K9=function(e){return iee(ree,e)}}else{var uee=Q9("state");eee[uee]=!0,W9=function(e,t){if(b9(e,uee))throw new tee("Object already initialized");return t.facade=e,V9(e,uee,t),t},q9=function(e){return b9(e,uee)?e[uee]:{}},K9=function(e){return b9(e,uee)}}var see={set:W9,get:q9,has:K9,enforce:function(e){return K9(e)?q9(e):W9(e,{})},getterFor:function(e){return function(t){var n;if(!W7(t)||(n=q9(t)).type!==e)throw tee("Incompatible receiver, "+e+" required");return n}}},lee=Function.prototype,cee=D7&&Object.getOwnPropertyDescriptor,fee=b9(lee,"name"),dee={EXISTS:fee,PROPER:fee&&"something"===function(){}.name,CONFIGURABLE:fee&&(!D7||D7&&cee(lee,"name").configurable)},pee=m7((function(e){var t=dee.CONFIGURABLE,n=see.get,r=see.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;G7(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b9(i,"name")||t&&i.name!==f)&&V9(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==S7?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:V9(e,n,i)):l?e[n]=i:p9(n,i)})(Function.prototype,"toString",(function(){return G7(this)&&n(this).source||Y9(this)}))})),hee=Math.ceil,vee=Math.floor,gee=function(e){var t=+e;return t!=t||0===t?0:(t>0?vee:hee)(t)},yee=Math.max,mee=Math.min,bee=function(e,t){var n=gee(e);return n<0?yee(n+t,0):mee(n,t)},Eee=Math.min,wee=function(e){return e>0?Eee(gee(e),9007199254740991):0},See=function(e){return wee(e.length)},Cee=function(e){return function(t,n,r){var o,i=V7(t),a=See(i),u=bee(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Dee={includes:Cee(!0),indexOf:Cee(!1)},Aee=Dee.indexOf,xee=R7([].push),Oee=function(e,t){var n,r=V7(e),o=0,i=[];for(n in r)!b9(eee,n)&&b9(r,n)&&xee(i,n);for(;t.length>o;)b9(r,n=t[o++])&&(~Aee(i,n)||xee(i,n));return i},Tee=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nee=Tee.concat("length","prototype"),kee={f:Object.getOwnPropertyNames||function(e){return Oee(e,Nee)}},Bee={f:Object.getOwnPropertySymbols},Iee=R7([].concat),Fee=K7("Reflect","ownKeys")||function(e){var t=kee.f(z9(e)),n=Bee.f;return n?Iee(t,n(e)):t},Pee=function(e,t){for(var n=Fee(t),r=$9.f,o=L9.f,i=0;i<n.length;i++){var a=n[i];b9(e,a)||r(e,a,o(t,a))}},Ree=/#|\.prototype\./,_ee=function(e,t){var n=jee[Lee(e)];return n==zee||n!=Mee&&(G7(t)?C7(t):!!t)},Lee=_ee.normalize=function(e){return String(e).replace(Ree,".").toLowerCase()},jee=_ee.data={},Mee=_ee.NATIVE="N",zee=_ee.POLYFILL="P",Hee=_ee,Uee=L9.f,$ee=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?S7:l?S7[u]||p9(u,{}):(S7[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Uee(n,r))&&a.value:n[r],!Hee(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pee(i,o)}(e.sham||o&&o.sham)&&V9(i,"sham",!0),pee(n,r,i,e)}},Vee={};Vee[T9("toStringTag")]="z";var Gee="[object z]"===String(Vee),Wee=T9("toStringTag"),qee=S7.Object,Kee="Arguments"==j7(function(){return arguments}()),Yee=Gee?j7:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=qee(e),Wee))?n:Kee?j7(t):"Object"==(r=j7(t))&&G7(t.callee)?"Arguments":r},Xee=S7.String,Zee=function(e){if("Symbol"===Yee(e))throw TypeError("Cannot convert a Symbol value to a string");return Xee(e)},Jee="\t\n\v\f\r \u2028\u2029\ufeff",Qee=R7("".replace),ete="["+Jee+"]",tte=RegExp("^"+ete+ete+"*"),nte=RegExp(ete+ete+"*$"),rte=function(e){return function(t){var n=Zee($7(t));return 1&e&&(n=Qee(n,tte,"")),2&e&&(n=Qee(n,nte,"")),n}},ote={start:rte(1),end:rte(2),trim:rte(3)},ite=dee.PROPER,ate=ote.trim;function ute(e){return e.length?e[0].tagName.toLowerCase():""}function ste(e,t,n,r){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={});var o=Mp(e),i=r.width,a=void 0===i?"":i,u=r.height,s=void 0===u?"":u,l="";return a&&(l+="width: "+a+";"),s&&(l+="height: "+s+";"),o.attr("width",t),o.attr("height",n),o.attr("style",l),o[0].outerHTML}$ee({target:"String",proto:!0,forced:("trim",C7((function(){return!!Jee.trim()||"
"!=="
".trim()||ite&&"trim"!==Jee.trim.name})))},{trim:function(){return ate(this)}}),$ee({global:!0},{globalThis:S7}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),yh&&(Mp.fn.focus=yh),$p&&(Mp.fn.attr=$p),Wp&&(Mp.fn.val=Wp),rh&&(Mp.fn.html=rh),sh&&(Mp.fn.parent=sh),Up&&(Mp.fn.hasClass=Up),ph&&(Mp.fn.empty=ph);var lte,cte={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,u=o.poster,s=void 0===u?"":u,l=o.key,c=void 0===l?"":l,f=o.width,d=void 0===f?"auto":f,p=o.height,h=void 0===p?"auto":p,v=o.style,g=void 0===v?{}:v,y=o.textAlign,m=void 0===y?"center":y,b=QO.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m},innerHTML:ste(a,d,h,g)})}else{var E=Fv("video",{key:c,poster:s,controls:!0,style:g},Fv("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==d&&(E.data.width=d),"auto"!==h&&(E.data.height=h),r=Fv("div",{className:"w-e-textarea-video-container","data-selected":b?"true":"",style:{textAlign:m}},E)}return pv("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},fte={type:"video",elemToHtml:function(e,t){var n=e,r=n.src,o=void 0===r?"":r,i=n.poster,a=void 0===i?"":i,u=n.width,s=void 0===u?"auto":u,l=n.height,c=void 0===l?"auto":l,f=n.style,d=void 0===f?{}:f,p=n.textAlign,h='<div data-w-e-type="video" data-w-e-is-void style="text-align: '+(void 0===p?"center":p)+';">\n';if(0===o.trim().indexOf("<iframe "))h+=ste(o,s,c,d);else{var v=d.width,g=void 0===v?"":v,y=d.height,m=void 0===y?"":y,b="";g&&(b+="width: "+g+";"),m&&(b+="height: "+m+";"),h+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'" style="'+b+'"><source src="'+o+'" type="video/mp4"/></video>'}return h+"\n</div>"}},dte=Object.keys||function(e){return Oee(e,Tee)},pte=D7?Object.defineProperties:function(e,t){z9(e);for(var n,r=V7(t),o=dte(t),i=o.length,a=0;i>a;)$9.f(e,n=o[a++],r[n]);return e},hte=K7("document","documentElement"),vte=Q9("IE_PROTO"),gte=function(){},yte=function(e){return"<script>"+e+"<\/script>"},mte=function(e){e.write(yte("")),e.close();var t=e.parentWindow.Object;return e=null,t},bte=function(){try{lte=new ActiveXObject("htmlfile")}catch(e){}var e,t;bte="undefined"!=typeof document?document.domain&<e?mte(lte):((t=P9("iframe")).style.display="none",hte.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(yte("document.F=Object")),e.close(),e.F):mte(lte);for(var n=Tee.length;n--;)delete bte.prototype[Tee[n]];return bte()};eee[vte]=!0;var Ete=Object.create||function(e,t){var n;return null!==e?(gte.prototype=z9(e),n=new gte,gte.prototype=null,n[vte]=e):n=bte(),void 0===t?n:pte(n,t)},wte=T9("unscopables"),Ste=Array.prototype;null==Ste[wte]&&$9.f(Ste,wte,{configurable:!0,value:Ete(null)});var Cte=function(e){Ste[wte][e]=!0},Dte=Dee.includes;$ee({target:"Array",proto:!0},{includes:function(e){return Dte(this,e,arguments.length>1?arguments[1]:void 0)}}),Cte("includes");var Ate={selector:"iframe,video,p",preParseHtml:function(e){var t=Mp(e),n=t;if("p"===ute(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Mp(o))}}var a=ute(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var u=Mp('<div data-w-e-type="video" data-w-e-is-void style="text-align: center;"></div>');return u.append(n),u[0]}},xte=R7(R7.bind),Ote=function(e,t){return l9(e),void 0===t?e:xte?xte(e,t):function(){return e.apply(t,arguments)}},Tte=Array.isArray||function(e){return"Array"==j7(e)},Nte=function(){},kte=[],Bte=K7("Reflect","construct"),Ite=/^\s*(?:class|function)\b/,Fte=R7(Ite.exec),Pte=!Ite.exec(Nte),Rte=function(e){if(!G7(e))return!1;try{return Bte(Nte,kte,e),!0}catch(e){return!1}},_te=!Bte||C7((function(){var e;return Rte(Rte.call)||!Rte(Object)||!Rte((function(){e=!0}))||e}))?function(e){if(!G7(e))return!1;switch(Yee(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Pte||!!Fte(Ite,Y9(e))}:Rte,Lte=T9("species"),jte=S7.Array,Mte=function(e,t){return new(function(e){var t;return Tte(e)&&(t=e.constructor,(_te(t)&&(t===jte||Tte(t.prototype))||W7(t)&&null===(t=t[Lte]))&&(t=void 0)),void 0===t?jte:t}(e))(0===t?0:t)},zte=R7([].push),Hte=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=y9(s),v=H7(h),g=Ote(l,c),y=See(v),m=0,b=f||Mte,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:zte(E,d)}else switch(e){case 4:return!1;case 7:zte(E,d)}return i?-1:r||o?o:E}},Ute={forEach:Hte(0),map:Hte(1),filter:Hte(2),some:Hte(3),every:Hte(4),find:Hte(5),findIndex:Hte(6),filterReject:Hte(7)},$te=Ute.find,Vte=!0;"find"in[]&&Array(1).find((function(){Vte=!1})),$ee({target:"Array",proto:!0,forced:Vte},{find:function(e){return $te(this,e,arguments.length>1?arguments[1]:void 0)}}),Cte("find");var Gte=Gee?{}.toString:function(){return"[object "+Yee(this)+"]"};function Wte(e,t,n,r,o){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}]}}Gee||pee(Object.prototype,"toString",Gte,{unsafe:!0});var qte,Kte,Yte={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Mp(e),o="",i="",a="auto",u="auto",s={},l=r.find("iframe");if(l.length>0)return a=l.attr("width")||"auto",u=l.attr("height")||"auto",s=l.attr("style")||{},Wte(o=l[0].outerHTML,i,a,u,s);var c=r.find("video");return(o=c.attr("src")||"")||c.length>0&&(o=c.find("source").attr("src")||""),a=c.attr("width")||"auto",u=c.attr("height")||"auto",Wte(o,i=c.attr("poster")||"",a,u,s=l.attr("style")||{})}},Xte=function(){var e=z9(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Zte=S7.RegExp,Jte=C7((function(){var e=Zte("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Qte=Jte||C7((function(){return!Zte("a","y").sticky})),ene={BROKEN_CARET:Jte||C7((function(){var e=Zte("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Qte,UNSUPPORTED_Y:Jte},tne=S7.RegExp,nne=C7((function(){var e=tne(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),rne=S7.RegExp,one=C7((function(){var e=rne("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),ine=see.get,ane=v9("native-string-replace",String.prototype.replace),une=RegExp.prototype.exec,sne=une,lne=R7("".charAt),cne=R7("".indexOf),fne=R7("".replace),dne=R7("".slice),pne=(Kte=/b*/g,x7(une,qte=/a/,"a"),x7(une,Kte,"a"),0!==qte.lastIndex||0!==Kte.lastIndex),hne=ene.BROKEN_CARET,vne=void 0!==/()??/.exec("")[1];(pne||vne||hne||nne||one)&&(sne=function(e){var t,n,r,o,i,a,u,s=this,l=ine(s),c=Zee(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=x7(sne,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=hne&&s.sticky,h=x7(Xte,s),v=s.source,g=0,y=c;if(p&&(h=fne(h,"y",""),-1===cne(h,"g")&&(h+="g"),y=dne(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==lne(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),vne&&(n=new RegExp("^"+v+"$(?!\\s)",h)),pne&&(r=s.lastIndex),o=x7(une,p?n:s,y),p?o?(o.input=dne(o.input,g),o[0]=dne(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:pne&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),vne&&o&&o.length>1&&x7(ane,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Ete(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var gne=sne;$ee({target:"RegExp",proto:!0,forced:/./.exec!==gne},{exec:gne});var yne=Function.prototype,mne=yne.apply,bne=yne.bind,Ene=yne.call,wne="object"==typeof Reflect&&Reflect.apply||(bne?Ene.bind(mne):function(){return Ene.apply(mne,arguments)}),Sne=(T9("species"),RegExp.prototype),Cne=R7("".charAt),Dne=R7("".charCodeAt),Ane=R7("".slice),xne=function(e){return function(t,n){var r,o,i=Zee($7(t)),a=gee(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Dne(i,a))<55296||r>56319||a+1===u||(o=Dne(i,a+1))<56320||o>57343?e?Cne(i,a):r:e?Ane(i,a,a+2):o-56320+(r-55296<<10)+65536}},One={codeAt:xne(!1),charAt:xne(!0)},Tne=One.charAt,Nne=function(e,t,n){return t+(n?Tne(e,t).length:1)},kne=Math.floor,Bne=R7("".charAt),Ine=R7("".replace),Fne=R7("".slice),Pne=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Rne=/\$([$&'`]|\d{1,2})/g,_ne=function(e,t,n,r,o,i){var a=n+e.length,u=r.length,s=Rne;return void 0!==o&&(o=y9(o),s=Pne),Ine(i,s,(function(i,s){var l;switch(Bne(s,0)){case"$":return"$";case"&":return e;case"`":return Fne(t,0,n);case"'":return Fne(t,a);case"<":l=o[Fne(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>u){var f=kne(c/10);return 0===f?i:f<=u?void 0===r[f-1]?Bne(s,1):r[f-1]+Bne(s,1):i}l=r[c-1]}return void 0===l?"":l}))},Lne=S7.TypeError,jne=function(e,t){var n=e.exec;if(G7(n)){var r=x7(n,e,t);return null!==r&&z9(r),r}if("RegExp"===j7(e))return x7(gne,e,t);throw Lne("RegExp#exec called on incompatible receiver")},Mne=T9("replace"),zne=Math.max,Hne=Math.min,Une=R7([].concat),$ne=R7([].push),Vne=R7("".indexOf),Gne=R7("".slice),Wne="$0"==="a".replace(/./,"$0"),qne=!!/./[Mne]&&""===/./[Mne]("a","$0");function Kne(e){return void 0===e&&(e="r"),e+"-"+jh()}!function(e,t,n,r){var o=T9(e),i=!C7((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!C7((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=R7(/./[o]),s=function(e,t,n){var r=qne?"$":"$0";return[function(e,n){var r=$7(this),o=null==e?void 0:c9(e,Mne);return o?x7(o,e,r,n):x7(t,Zee(r),e,n)},function(e,o){var i=z9(this),a=Zee(e);if("string"==typeof o&&-1===Vne(o,r)&&-1===Vne(o,"$<")){var u=n(t,i,a,o);if(u.done)return u.value}var s=G7(o);s||(o=Zee(o));var l=i.global;if(l){var c=i.unicode;i.lastIndex=0}for(var f=[];;){var d=jne(i,a);if(null===d)break;if($ne(f,d),!l)break;""===Zee(d[0])&&(i.lastIndex=Nne(a,wee(i.lastIndex),c))}for(var p,h="",v=0,g=0;g<f.length;g++){for(var y=Zee((d=f[g])[0]),m=zne(Hne(gee(d.index),a.length),0),b=[],E=1;E<d.length;E++)$ne(b,void 0===(p=d[E])?p:String(p));var w=d.groups;if(s){var S=Une([y],b,m,a);void 0!==w&&$ne(S,w);var C=Zee(wne(o,void 0,S))}else C=_ne(y,a,m,b,w,o);m>=v&&(h+=Gne(a,v,m)+C,v=m+y.length)}return h+Gne(a,v)}]}(0,""[e],(function(e,t,n,r,o){var a=R7(e),s=t.exec;return s===gne||s===Sne.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));pee(String.prototype,e,s[0]),pee(Sne,o,s[1])}}("replace",0,!!C7((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Wne||qne);var Yne=S7.Promise,Xne=function(e,t,n){for(var r in t)pee(e,r,t[r],n);return e},Zne=S7.String,Jne=S7.TypeError,Qne=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=R7(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return z9(n),function(e){if("object"==typeof e||G7(e))return e;throw Jne("Can't set "+Zne(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ere=$9.f,tre=T9("toStringTag"),nre=function(e,t,n){e&&!b9(e=n?e:e.prototype,tre)&&ere(e,tre,{configurable:!0,value:t})},rre=T9("species"),ore=S7.TypeError,ire=function(e,t){if(Y7(t,e))return e;throw ore("Incorrect invocation")},are={},ure=T9("iterator"),sre=Array.prototype,lre=T9("iterator"),cre=function(e){if(null!=e)return c9(e,lre)||c9(e,"@@iterator")||are[Yee(e)]},fre=S7.TypeError,dre=function(e,t,n){var r,o;z9(e);try{if(!(r=c9(e,"return"))){if("throw"===t)throw n;return n}r=x7(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return z9(r),n},pre=S7.TypeError,hre=function(e,t){this.stopped=e,this.result=t},vre=hre.prototype,gre=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Ote(t,f),g=function(e){return r&&dre(r,"normal",e),new hre(!0,e)},y=function(e){return d?(z9(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=cre(e)))throw pre(u9(e)+" is not iterable");if(void 0!==(c=o)&&(are.Array===c||sre[ure]===c)){for(i=0,a=See(e);a>i;i++)if((u=y(e[i]))&&Y7(vre,u))return u;return new hre(!1)}r=function(e,t){var n=arguments.length<2?cre(e):t;if(l9(n))return z9(x7(n,e));throw fre(u9(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=x7(s,r)).done;){try{u=y(l.value)}catch(e){dre(r,"throw",e)}if("object"==typeof u&&u&&Y7(vre,u))return u}return new hre(!1)},yre=T9("iterator"),mre=!1;try{var bre=0,Ere={next:function(){return{done:!!bre++}},return:function(){mre=!0}};Ere[yre]=function(){return this},Array.from(Ere,(function(){throw 2}))}catch(Ml){}var wre,Sre,Cre,Dre,Are=function(e,t){if(!t&&!mre)return!1;var n=!1;try{var r={};r[yre]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},xre=S7.TypeError,Ore=T9("species"),Tre=R7([].slice),Nre=/(?:ipad|iphone|ipod).*applewebkit/i.test(X7),kre="process"==j7(S7.process),Bre=S7.setImmediate,Ire=S7.clearImmediate,Fre=S7.process,Pre=S7.Dispatch,Rre=S7.Function,_re=S7.MessageChannel,Lre=S7.String,jre=0,Mre={};try{wre=S7.location}catch(Ml){}var zre=function(e){if(b9(Mre,e)){var t=Mre[e];delete Mre[e],t()}},Hre=function(e){return function(){zre(e)}},Ure=function(e){zre(e.data)},$re=function(e){S7.postMessage(Lre(e),wre.protocol+"//"+wre.host)};Bre&&Ire||(Bre=function(e){var t=Tre(arguments,1);return Mre[++jre]=function(){wne(G7(e)?e:Rre(e),void 0,t)},Sre(jre),jre},Ire=function(e){delete Mre[e]},kre?Sre=function(e){Fre.nextTick(Hre(e))}:Pre&&Pre.now?Sre=function(e){Pre.now(Hre(e))}:_re&&!Nre?(Dre=(Cre=new _re).port2,Cre.port1.onmessage=Ure,Sre=Ote(Dre.postMessage,Dre)):S7.addEventListener&&G7(S7.postMessage)&&!S7.importScripts&&wre&&"file:"!==wre.protocol&&!C7($re)?(Sre=$re,S7.addEventListener("message",Ure,!1)):Sre="onreadystatechange"in P9("script")?function(e){hte.appendChild(P9("script")).onreadystatechange=function(){hte.removeChild(this),zre(e)}}:function(e){setTimeout(Hre(e),0)});var Vre,Gre,Wre,qre,Kre,Yre,Xre,Zre,Jre={set:Bre,clear:Ire},Qre=/ipad|iphone|ipod/i.test(X7)&&void 0!==S7.Pebble,eoe=/web0s(?!.*chrome)/i.test(X7),toe=L9.f,noe=Jre.set,roe=S7.MutationObserver||S7.WebKitMutationObserver,ooe=S7.document,ioe=S7.process,aoe=S7.Promise,uoe=toe(S7,"queueMicrotask"),soe=uoe&&uoe.value;soe||(Vre=function(){var e,t;for(kre&&(e=ioe.domain)&&e.exit();Gre;){t=Gre.fn,Gre=Gre.next;try{t()}catch(e){throw Gre?qre():Wre=void 0,e}}Wre=void 0,e&&e.enter()},Nre||kre||eoe||!roe||!ooe?!Qre&&aoe&&aoe.resolve?((Xre=aoe.resolve(void 0)).constructor=aoe,Zre=Ote(Xre.then,Xre),qre=function(){Zre(Vre)}):kre?qre=function(){ioe.nextTick(Vre)}:(noe=Ote(noe,S7),qre=function(){noe(Vre)}):(Kre=!0,Yre=ooe.createTextNode(""),new roe(Vre).observe(Yre,{characterData:!0}),qre=function(){Yre.data=Kre=!Kre}));var loe,coe,foe,doe,poe=soe||function(e){var t={fn:e,next:void 0};Wre&&(Wre.next=t),Gre||(Gre=t,qre()),Wre=t},hoe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=l9(t),this.reject=l9(n)},voe={f:function(e){return new hoe(e)}},goe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},yoe="object"==typeof window,moe=Jre.set,boe=T9("species"),Eoe="Promise",woe=see.getterFor(Eoe),Soe=see.set,Coe=see.getterFor(Eoe),Doe=Yne&&Yne.prototype,Aoe=Yne,xoe=Doe,Ooe=S7.TypeError,Toe=S7.document,Noe=S7.process,koe=voe.f,Boe=koe,Ioe=!!(Toe&&Toe.createEvent&&S7.dispatchEvent),Foe=G7(S7.PromiseRejectionEvent),Poe=!1,Roe=Hee(Eoe,(function(){var e=Y9(Aoe),t=e!==String(Aoe);if(!t&&66===t9)return!0;if(t9>=51&&/native code/.test(e))return!1;var n=new Aoe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[boe]=r,!(Poe=n.then((function(){}))instanceof r)||!t&&yoe&&!Foe})),_oe=Roe||!Are((function(e){Aoe.all(e).catch((function(){}))})),Loe=function(e){var t;return!(!W7(e)||!G7(t=e.then))&&t},joe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;poe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Uoe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d(Ooe("Promise-chain cycle")):(u=Loe(a))?x7(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&zoe(e)}))}},Moe=function(e,t,n){var r,o;Ioe?((r=Toe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),S7.dispatchEvent(r)):r={promise:t,reason:n},!Foe&&(o=S7["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=S7.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},zoe=function(e){x7(moe,S7,(function(){var t,n=e.facade,r=e.value;if(Hoe(e)&&(t=goe((function(){kre?Noe.emit("unhandledRejection",r,n):Moe("unhandledrejection",n,r)})),e.rejection=kre||Hoe(e)?2:1,t.error))throw t.value}))},Hoe=function(e){return 1!==e.rejection&&!e.parent},Uoe=function(e){x7(moe,S7,(function(){var t=e.facade;kre?Noe.emit("rejectionHandled",t):Moe("rejectionhandled",t,e.value)}))},$oe=function(e,t,n){return function(r){e(t,r,n)}},Voe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,joe(e,!0))},Goe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ooe("Promise can't be resolved itself");var r=Loe(t);r?poe((function(){var n={done:!1};try{x7(r,t,$oe(Goe,n,e),$oe(Voe,n,e))}catch(t){Voe(n,t,e)}})):(e.value=t,e.state=1,joe(e,!1))}catch(t){Voe({done:!1},t,e)}}};if(Roe&&(xoe=(Aoe=function(e){ire(this,xoe),l9(e),x7(loe,this);var t=woe(this);try{e($oe(Goe,t),$oe(Voe,t))}catch(e){Voe(t,e)}}).prototype,(loe=function(e){Soe(this,{type:Eoe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Xne(xoe,{then:function(e,t){var n=Coe(this),r=n.reactions,o=koe(function(e,t){var n,r=z9(e).constructor;return void 0===r||null==(n=z9(r)[Ore])?t:function(e){if(_te(e))return e;throw xre(u9(e)+" is not a constructor")}(n)}(this,Aoe));return o.ok=!G7(e)||e,o.fail=G7(t)&&t,o.domain=kre?Noe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&joe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),coe=function(){var e=new loe,t=woe(e);this.promise=e,this.resolve=$oe(Goe,t),this.reject=$oe(Voe,t)},voe.f=koe=function(e){return e===Aoe||e===foe?new coe(e):Boe(e)},G7(Yne)&&Doe!==Object.prototype)){doe=Doe.then,Poe||(pee(Doe,"then",(function(e,t){var n=this;return new Aoe((function(e,t){x7(doe,n,e,t)})).then(e,t)}),{unsafe:!0}),pee(Doe,"catch",xoe.catch,{unsafe:!0}));try{delete Doe.constructor}catch(Ml){}Qne&&Qne(Doe,xoe)}function Woe(e,t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),p7(this,void 0,void 0,(function(){var i,a,u,s,l,c,f;return h7(this,(function(d){switch(d.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,u=i.checkVideo,s=i.parseVideoSrc,[4,u(t,n)]):[2];case 1:return"string"==typeof(l=d.sent())?(e.alert(l,"error"),[2]):null==l?[2]:[4,s(t)];case 2:return 0!==(c=d.sent()).trim().indexOf("<iframe ")&&(c=c.replace(/</g,"<").replace(/>/g,">")),f={type:"video",src:c,poster:n,children:[{text:""}],style:{width:r,height:o}},Promise.resolve().then((function(){md.insertNodes(e,f)})),a(f),[2]}}))}))}function qoe(){return Kne("w-e-insert-video")}$ee({global:!0,wrap:!0,forced:Roe},{Promise:Aoe}),nre(Aoe,Eoe,!1),function(e){var t=K7("Promise"),n=$9.f;D7&&t&&!t[rre]&&n(t,rre,{configurable:!0,get:function(){return this}})}(),foe=K7(Eoe),$ee({target:Eoe,stat:!0,forced:Roe},{reject:function(e){var t=koe(this);return x7(t.reject,void 0,e),t.promise}}),$ee({target:Eoe,stat:!0,forced:Roe},{resolve:function(e){return function(e,t){if(z9(e),W7(t)&&t.constructor===e)return t;var n=voe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),$ee({target:Eoe,stat:!0,forced:_oe},{all:function(e){var t=this,n=koe(t),r=n.resolve,o=n.reject,i=goe((function(){var n=l9(t.resolve),i=[],a=0,u=1;gre(e,(function(e){var s=a++,l=!1;u++,x7(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=koe(t),r=n.reject,o=goe((function(){var o=l9(t.resolve);gre(e,(function(e){x7(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Koe=function(){function e(){this.title=UF("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=qoe(),this.posterInputId=qoe(),this.buttonId=qoe()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!QO.getSelectedElems(e).some((function(t){var n=QO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=v7(CI(UF("videoModule.videoSrc"),r,UF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=v7(CI(UF("videoModule.videoPoster"),o,UF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=v7(AI(i,UF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return p7(t,void 0,void 0,(function(){var t,i;return h7(this,(function(a){switch(a.label){case 0:return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),[4,Woe(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=v}var g=this.$content;return g.empty(),g.append(u),g.append(c),g.append(h),d.val(""),p.val(""),setTimeout((function(){d.focus()})),g[0]},e}(),Yoe=R7([].join),Xoe=H7!=Object,Zoe=function(e,t){var n=[].join;return!!n&&C7((function(){n.call(null,",",1)}))}();$ee({target:"Array",proto:!0,forced:Xoe||!Zoe},{join:function(e){return Yoe(V7(this),void 0===e?",":e)}});var Joe,Qoe,eie,tie=!C7((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),nie=Q9("IE_PROTO"),rie=S7.Object,oie=rie.prototype,iie=tie?rie.getPrototypeOf:function(e){var t=y9(e);if(b9(t,nie))return t[nie];var n=t.constructor;return G7(n)&&t instanceof n?n.prototype:t instanceof rie?oie:null},aie=T9("iterator"),uie=!1;[].keys&&("next"in(eie=[].keys())?(Qoe=iie(iie(eie)))!==Object.prototype&&(Joe=Qoe):uie=!0);var sie=null==Joe||C7((function(){var e={};return Joe[aie].call(e)!==e}));sie&&(Joe={}),G7(Joe[aie])||pee(Joe,aie,(function(){return this}));var lie={IteratorPrototype:Joe,BUGGY_SAFARI_ITERATORS:uie},cie=lie.IteratorPrototype,fie=function(){return this},die=dee.PROPER,pie=dee.CONFIGURABLE,hie=lie.IteratorPrototype,vie=lie.BUGGY_SAFARI_ITERATORS,gie=T9("iterator"),yie=function(){return this},mie=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Ete(cie,{next:k7(1,n)}),nre(e,o,!1),are[o]=fie}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!vie&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[gie]||p["@@iterator"]||o&&p[o],v=!vie&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=iie(g.call(new e)))!==Object.prototype&&u.next&&(iie(u)!==hie&&(Qne?Qne(u,hie):G7(u[gie])||pee(u,gie,yie)),nre(u,f,!0)),die&&"values"==o&&h&&"values"!==h.name&&(pie?V9(p,"name","values"):(d=!0,v=function(){return x7(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(vie||d||!(l in p))&&pee(p,l,s[l]);else $ee({target:t,proto:!0,forced:vie||d},s);return p[gie]!==v&&pee(p,gie,v,{name:o}),are[t]=v,s},bie=see.set,Eie=see.getterFor("Array Iterator"),wie=mie(Array,"Array",(function(e,t){bie(this,{type:"Array Iterator",target:V7(e),index:0,kind:t})}),(function(){var e=Eie(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");are.Arguments=are.Array,Cte("keys"),Cte("values"),Cte("entries");var Sie=One.charAt,Cie=see.set,Die=see.getterFor("String Iterator");mie(String,"String",(function(e){Cie(this,{type:"String Iterator",string:Zee(e),index:0})}),(function(){var e,t=Die(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sie(n,r),t.index+=e.length,{value:e,done:!1})}));var Aie=function(e,t,n){var r=B9(t);r in e?$9.f(e,r,k7(0,n)):e[r]=n},xie=S7.Array,Oie=Math.max,Tie=kee.f,Nie="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kie={f:function(e){return Nie&&"Window"==j7(e)?function(e){try{return Tie(e)}catch(e){return function(e,t,n){for(var r=See(e),o=bee(void 0,r),i=bee(r,r),a=xie(Oie(i-o,0)),u=0;o<i;o++,u++)Aie(a,u,e[o]);return a.length=u,a}(Nie)}}(e):Tie(V7(e))}},Bie=C7((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Iie=Object.isExtensible,Fie=C7((function(){Iie(1)}))||Bie?function(e){return!!W7(e)&&(!Bie||"ArrayBuffer"!=j7(e))&&(!Iie||Iie(e))}:Iie,Pie=!C7((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rie=m7((function(e){var t=$9.f,n=!1,r=C9("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=kee.f,t=R7([].splice),o={};o[r]=1,e(o).length&&(kee.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},$ee({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kie.f}))},fastKey:function(e,t){if(!W7(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!b9(e,r)){if(!Fie(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!b9(e,r)){if(!Fie(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Pie&&n&&Fie(e)&&!b9(e,r)&&i(e),e}};eee[r]=!0})),_ie=Rie.getWeakData,Lie=see.set,jie=see.getterFor,Mie=Ute.find,zie=Ute.findIndex,Hie=R7([].splice),Uie=0,$ie=function(e){return e.frozen||(e.frozen=new Vie)},Vie=function(){this.entries=[]},Gie=function(e,t){return Mie(e.entries,(function(e){return e[0]===t}))};Vie.prototype={get:function(e){var t=Gie(this,e);if(t)return t[1]},has:function(e){return!!Gie(this,e)},set:function(e,t){var n=Gie(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zie(this.entries,(function(t){return t[0]===e}));return~t&&Hie(this.entries,t,1),!!~t}};var Wie,qie={getConstructor:function(e,t,n,r){var o=e((function(e,o){ire(e,i),Lie(e,{type:t,id:Uie++,frozen:void 0}),null!=o&&gre(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=jie(t),u=function(e,t,n){var r=a(e),o=_ie(z9(t),!0);return!0===o?$ie(r).set(t,n):o[r.id]=n,e};return Xne(i,{delete:function(e){var t=a(this);if(!W7(e))return!1;var n=_ie(e);return!0===n?$ie(t).delete(e):n&&b9(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!W7(e))return!1;var n=_ie(e);return!0===n?$ie(t).has(e):n&&b9(n,t.id)}}),Xne(i,n?{get:function(e){var t=a(this);if(W7(e)){var n=_ie(e);return!0===n?$ie(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},Kie=see.enforce,Yie=!S7.ActiveXObject&&"ActiveXObject"in S7,Xie=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Zie=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=S7[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=R7(u[e]);pee(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!W7(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!W7(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!W7(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(Hee(e,!G7(a)||!(o||u.forEach&&!C7((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Rie.enable();else if(Hee(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=C7((function(){f.has(1)})),h=Are((function(e){new a(e)})),v=!o&&C7((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){ire(e,u);var n=function(e,t,n){var r,o;return Qne&&G7(r=t.constructor)&&r!==n&&W7(o=r.prototype)&&o!==n.prototype&&Qne(e,o),e}(new a,e,s);return null!=t&&gre(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,$ee({global:!0,forced:s!=a},l),nre(s,e),o||n.setStrong(s,e,r),s}("WeakMap",Xie,qie);if(Z9&&Yie){Wie=qie.getConstructor(Xie,"WeakMap",!0),Rie.enable();var Jie=Zie.prototype,Qie=R7(Jie.delete),eae=R7(Jie.has),tae=R7(Jie.get),nae=R7(Jie.set);Xne(Jie,{delete:function(e){if(W7(e)&&!Fie(e)){var t=Kie(this);return t.frozen||(t.frozen=new Wie),Qie(this,e)||t.frozen.delete(e)}return Qie(this,e)},has:function(e){if(W7(e)&&!Fie(e)){var t=Kie(this);return t.frozen||(t.frozen=new Wie),eae(this,e)||t.frozen.has(e)}return eae(this,e)},get:function(e){if(W7(e)&&!Fie(e)){var t=Kie(this);return t.frozen||(t.frozen=new Wie),eae(this,e)?tae(this,e):t.frozen.get(e)}return tae(this,e)},set:function(e,t){if(W7(e)&&!Fie(e)){var n=Kie(this);n.frozen||(n.frozen=new Wie),eae(this,e)?nae(this,e,t):n.frozen.set(e,t)}else nae(this,e,t);return this}})}var rae={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},oae=P9("span").classList,iae=oae&&oae.constructor&&oae.constructor.prototype,aae=iae===Object.prototype?void 0:iae,uae=T9("iterator"),sae=T9("toStringTag"),lae=wie.values,cae=function(e,t){if(e){if(e[uae]!==lae)try{V9(e,uae,lae)}catch(t){e[uae]=lae}if(e[sae]||V9(e,sae,t),rae[t])for(var n in wie)if(e[n]!==wie[n])try{V9(e,n,wie[n])}catch(t){e[n]=wie[n]}}};for(var fae in rae)cae(S7[fae]&&S7[fae].prototype,fae);cae(aae,"DOMTokenList");var dae=dee.EXISTS,pae=$9.f,hae=Function.prototype,vae=R7(hae.toString),gae=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,yae=R7(gae.exec);D7&&!dae&&pae(hae,"name",{configurable:!0,get:function(){try{return yae(gae,vae(this))[1]}catch(e){return""}}});var mae=T9("species"),bae=t9>=51||!C7((function(){var e=[];return(e.constructor={})[mae]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),Eae=T9("species"),wae=S7.Array,Sae=Math.max;function Cae(e){return e.getMenuConfig("uploadVideo")}$ee({target:"Array",proto:!0,forced:!bae},{slice:function(e,t){var n,r,o,i=V7(this),a=See(i),u=bee(e,a),s=bee(void 0===t?a:t,a);if(Tte(i)&&(n=i.constructor,(_te(n)&&(n===wae||Tte(n.prototype))||W7(n)&&null===(n=n[Eae]))&&(n=void 0),n===wae||void 0===n))return Tre(i,u,s);for(r=new(void 0===n?wae:n)(Sae(s-u,0)),o=0;u<s;u++,o++)u in i&&Aie(r,o,i[u]);return r.length=o,r}});var Dae=new WeakMap;function Aae(e,t){return p7(this,void 0,void 0,(function(){var n,r,o,i;return h7(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Dae.get(e);if(null!=t)return t;var n=Cae(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=KI(d7(d7({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n){return Woe(e,t,n)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){var c=l.url,f=void 0===c?"":c,d=l.poster;Woe(e,f,void 0===d?"":d),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Dae.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}var xae=function(){function e(){this.title=UF("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n){return Woe(e,t,n)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;!function(e,t){var n,r;p7(this,void 0,void 0,(function(){var o,i,a,u,s,l;return h7(this,(function(c){switch(c.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=Cae(e).customUpload,c.label=1;case 1:c.trys.push([1,9,10,15]),a=g7(o),c.label=2;case 2:return[4,a.next()];case 3:return(u=c.sent()).done?[3,8]:(s=u.value,i?[4,i(s,(function(t,n){return Woe(e,t,n)}))]:[3,5]);case 4:return c.sent(),[3,7];case 5:return[4,Aae(e,s)];case 6:c.sent(),c.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return l=c.sent(),n={error:l},[3,15];case 10:return c.trys.push([10,,13,14]),u&&!u.done&&(r=a.return)?[4,r.call(a)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[3,14];case 13:if(n)throw n.error;return[7];case 14:return[7];case 15:return[2]}}))}))}(e,t)}))}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!qf.isCollapsed(t)||!!QO.getSelectedElems(e).some((function(t){var n=QO.getNodeType(t);return"pre"===n||"list-item"===n||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}();function Oae(){return Kne("w-e-insert-video")}var Tae=function(){function e(){this.title=UF("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Oae(),this.heightInputId=Oae(),this.buttonId=Oae()}return e.prototype.getSelectedVideoNode=function(e){return QO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=v7(CI(UF("videoModule.width"),n,"auto"),2),a=i[0],u=Mp(i[1]),s=v7(CI(UF("videoModule.height"),r,"auto"),2),l=s[0],c=Mp(s[1]),f=v7(AI(o,UF("videoModule.ok")),1)[0];if(null==this.$content){var d=Mp("<div></div>");d.on("click","#"+o,(function(t){t.preventDefault();var o=d.find("#"+n).val().trim(),i=d.find("#"+r).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},s="auto",l="auto";a(o)?s=o:u(o)&&(s=parseInt(o)+"px"),a(i)?l=i:u(i)&&(l=parseInt(i)+"px");var c=h.style,f=void 0===c?{}:c;e.restoreSelection();var p=d7(d7({},f),{style:{width:s,height:l}});md.setNodes(e,p,{match:function(e){return QO.checkNodeType(e,"video")}}),e.hidePanelOrModal()})),this.$content=d}var p=this.$content;p.empty(),p.append(a),p.append(l),p.append(f);var h=this.getSelectedVideoNode(e);if(null==h)return p[0];var v=h.style,g=void 0===v?{}:v,y=g.width,m=void 0===y?"":y,b=g.height,E=void 0===b?"":b;return u.val(m),c.val(E),setTimeout((function(){u.focus()})),p[0]},e}();function Nae(){return Kne("w-e-edit-video")}var kae=function(){function e(){this.title=UF("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Nae(),this.posterInputId=Nae(),this.buttonId=Nae()}return e.prototype.getSelectedVideoNode=function(e){return QO.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=v7(CI(UF("videoModule.videoSrc"),r,UF("videoModule.videoSrcPlaceHolder")),2),u=a[0],s=a[1],l=v7(CI(UF("videoModule.videoPoster"),o,UF("videoModule.videoPosterPlaceHolder")),2),c=l[0],f=l[1],d=Mp(s),p=Mp(f),h=v7(AI(i,UF("videoModule.ok")),1)[0];if(null==this.$content){var v=Mp("<div></div>");v.on("click","#"+i,(function(n){return p7(t,void 0,void 0,(function(){var t,i,a,u;return h7(this,(function(s){return n.preventDefault(),t=v.find("#"+r).val().trim(),i=v.find("#"+o).val().trim(),a=Kne("video-"),u={src:t,poster:i,key:a},e.restoreSelection(),md.setNodes(e,u,{match:function(e){return QO.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]}))}))})),this.$content=v}var g=this.$content;g.empty(),g.append(u),g.append(c),g.append(h);var y=this.getSelectedVideoNode(e);if(null==y)return g[0];var m=y.src,b=void 0===m?"":m,E=y.poster,w=void 0===E?"":E;return d.val(b),p.val(w),setTimeout((function(){d.focus()})),g[0]},e}(),Bae={renderElems:[cte],elemsToHtml:[fte],preParseHtml:[Ate],parseElemsHtml:[Yte],menus:[{key:"insertVideo",factory:function(){return new Koe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new xae},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+" upload error",t,n)}}},{key:"editVideoSize",factory:function(){return new Tae}},{key:"editVideoSrc",factory:function(){return new kae}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=v7(e,2),o=t[0],i=t[1];return"video"===QO.getNodeType(o)&&QO.isLastNode(r,o)&&md.insertNodes(r,QO.genEmptyParagraph(),{at:[i[0]+1]}),n([o,i])},r}};MF("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),MF("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var Iae="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Fae(e){var t={exports:{}};return e(t,t.exports),t.exports}var Pae,Rae,_ae=function(e){return e&&e.Math==Math&&e},Lae=_ae("object"==typeof globalThis&&globalThis)||_ae("object"==typeof window&&window)||_ae("object"==typeof self&&self)||_ae("object"==typeof Iae&&Iae)||function(){return this}()||Function("return this")(),jae=function(e){try{return!!e()}catch(e){return!0}},Mae=!jae((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),zae=Function.prototype.call,Hae=zae.bind?zae.bind(zae):function(){return zae.apply(zae,arguments)},Uae={}.propertyIsEnumerable,$ae=Object.getOwnPropertyDescriptor,Vae={f:$ae&&!Uae.call({1:2},1)?function(e){var t=$ae(this,e);return!!t&&t.enumerable}:Uae},Gae=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Wae=Function.prototype,qae=Wae.bind,Kae=Wae.call,Yae=qae&&qae.bind(Kae),Xae=qae?function(e){return e&&Yae(Kae,e)}:function(e){return e&&function(){return Kae.apply(e,arguments)}},Zae=Xae({}.toString),Jae=Xae("".slice),Qae=function(e){return Jae(Zae(e),8,-1)},eue=Lae.Object,tue=Xae("".split),nue=jae((function(){return!eue("z").propertyIsEnumerable(0)}))?function(e){return"String"==Qae(e)?tue(e,""):eue(e)}:eue,rue=Lae.TypeError,oue=function(e){if(null==e)throw rue("Can't call method on "+e);return e},iue=function(e){return nue(oue(e))},aue=function(e){return"function"==typeof e},uue=function(e){return"object"==typeof e?null!==e:aue(e)},sue=function(e){return aue(e)?e:void 0},lue=function(e,t){return arguments.length<2?sue(Lae[e]):Lae[e]&&Lae[e][t]},cue=Xae({}.isPrototypeOf),fue=lue("navigator","userAgent")||"",due=Lae.process,pue=Lae.Deno,hue=due&&due.versions||pue&&pue.version,vue=hue&&hue.v8;vue&&(Rae=(Pae=vue.split("."))[0]>0&&Pae[0]<4?1:+(Pae[0]+Pae[1])),!Rae&&fue&&(!(Pae=fue.match(/Edge\/(\d+)/))||Pae[1]>=74)&&(Pae=fue.match(/Chrome\/(\d+)/))&&(Rae=+Pae[1]);var gue=Rae,yue=!!Object.getOwnPropertySymbols&&!jae((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&gue&&gue<41})),mue=yue&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,bue=Lae.Object,Eue=mue?function(e){return"symbol"==typeof e}:function(e){var t=lue("Symbol");return aue(t)&&cue(t.prototype,bue(e))},wue=Lae.String,Sue=function(e){try{return wue(e)}catch(e){return"Object"}},Cue=Lae.TypeError,Due=function(e){if(aue(e))return e;throw Cue(Sue(e)+" is not a function")},Aue=function(e,t){var n=e[t];return null==n?void 0:Due(n)},xue=Lae.TypeError,Oue=Object.defineProperty,Tue=function(e,t){try{Oue(Lae,e,{value:t,configurable:!0,writable:!0})}catch(n){Lae[e]=t}return t},Nue=Lae["__core-js_shared__"]||Tue("__core-js_shared__",{}),kue=Fae((function(e){(e.exports=function(e,t){return Nue[e]||(Nue[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Bue=Lae.Object,Iue=function(e){return Bue(oue(e))},Fue=Xae({}.hasOwnProperty),Pue=Object.hasOwn||function(e,t){return Fue(Iue(e),t)},Rue=0,_ue=Math.random(),Lue=Xae(1..toString),jue=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Lue(++Rue+_ue,36)},Mue=kue("wks"),zue=Lae.Symbol,Hue=zue&&zue.for,Uue=mue?zue:zue&&zue.withoutSetter||jue,$ue=function(e){if(!Pue(Mue,e)||!yue&&"string"!=typeof Mue[e]){var t="Symbol."+e;yue&&Pue(zue,e)?Mue[e]=zue[e]:Mue[e]=mue&&Hue?Hue(t):Uue(t)}return Mue[e]},Vue=Lae.TypeError,Gue=$ue("toPrimitive"),Wue=function(e){var t=function(e,t){if(!uue(e)||Eue(e))return e;var n,r=Aue(e,Gue);if(r){if(void 0===t&&(t="default"),n=Hae(r,e,t),!uue(n)||Eue(n))return n;throw Vue("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&aue(n=e.toString)&&!uue(r=Hae(n,e)))return r;if(aue(n=e.valueOf)&&!uue(r=Hae(n,e)))return r;if("string"!==t&&aue(n=e.toString)&&!uue(r=Hae(n,e)))return r;throw xue("Can't convert object to primitive value")}(e,t)}(e,"string");return Eue(t)?t:t+""},que=Lae.document,Kue=uue(que)&&uue(que.createElement),Yue=function(e){return Kue?que.createElement(e):{}},Xue=!Mae&&!jae((function(){return 7!=Object.defineProperty(Yue("div"),"a",{get:function(){return 7}}).a})),Zue=Object.getOwnPropertyDescriptor,Jue={f:Mae?Zue:function(e,t){if(e=iue(e),t=Wue(t),Xue)try{return Zue(e,t)}catch(e){}if(Pue(e,t))return Gae(!Hae(Vae.f,e,t),e[t])}},Que=Lae.String,ese=Lae.TypeError,tse=function(e){if(uue(e))return e;throw ese(Que(e)+" is not an object")},nse=Lae.TypeError,rse=Object.defineProperty,ose={f:Mae?rse:function(e,t,n){if(tse(e),t=Wue(t),tse(n),Xue)try{return rse(e,t,n)}catch(e){}if("get"in n||"set"in n)throw nse("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ise=Mae?function(e,t,n){return ose.f(e,t,Gae(1,n))}:function(e,t,n){return e[t]=n,e},ase=Xae(Function.toString);aue(Nue.inspectSource)||(Nue.inspectSource=function(e){return ase(e)});var use,sse,lse,cse=Nue.inspectSource,fse=Lae.WeakMap,dse=aue(fse)&&/native code/.test(cse(fse)),pse=kue("keys"),hse=function(e){return pse[e]||(pse[e]=jue(e))},vse={},gse=Lae.TypeError,yse=Lae.WeakMap;if(dse||Nue.state){var mse=Nue.state||(Nue.state=new yse),bse=Xae(mse.get),Ese=Xae(mse.has),wse=Xae(mse.set);use=function(e,t){if(Ese(mse,e))throw new gse("Object already initialized");return t.facade=e,wse(mse,e,t),t},sse=function(e){return bse(mse,e)||{}},lse=function(e){return Ese(mse,e)}}else{var Sse=hse("state");vse[Sse]=!0,use=function(e,t){if(Pue(e,Sse))throw new gse("Object already initialized");return t.facade=e,ise(e,Sse,t),t},sse=function(e){return Pue(e,Sse)?e[Sse]:{}},lse=function(e){return Pue(e,Sse)}}var Cse={set:use,get:sse,has:lse,enforce:function(e){return lse(e)?sse(e):use(e,{})},getterFor:function(e){return function(t){var n;if(!uue(t)||(n=sse(t)).type!==e)throw gse("Incompatible receiver, "+e+" required");return n}}},Dse=Function.prototype,Ase=Mae&&Object.getOwnPropertyDescriptor,xse=Pue(Dse,"name"),Ose={EXISTS:xse,PROPER:xse&&"something"===function(){}.name,CONFIGURABLE:xse&&(!Mae||Mae&&Ase(Dse,"name").configurable)},Tse=Fae((function(e){var t=Ose.CONFIGURABLE,n=Cse.get,r=Cse.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;aue(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Pue(i,"name")||t&&i.name!==f)&&ise(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Lae?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:ise(e,n,i)):l?e[n]=i:Tue(n,i)})(Function.prototype,"toString",(function(){return aue(this)&&n(this).source||cse(this)}))})),Nse=Math.ceil,kse=Math.floor,Bse=function(e){var t=+e;return t!=t||0===t?0:(t>0?kse:Nse)(t)},Ise=Math.max,Fse=Math.min,Pse=function(e,t){var n=Bse(e);return n<0?Ise(n+t,0):Fse(n,t)},Rse=Math.min,_se=function(e){return e>0?Rse(Bse(e),9007199254740991):0},Lse=function(e){return _se(e.length)},jse=function(e){return function(t,n,r){var o,i=iue(t),a=Lse(i),u=Pse(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},Mse=(jse(!0),jse(!1)),zse=Xae([].push),Hse=function(e,t){var n,r=iue(e),o=0,i=[];for(n in r)!Pue(vse,n)&&Pue(r,n)&&zse(i,n);for(;t.length>o;)Pue(r,n=t[o++])&&(~Mse(i,n)||zse(i,n));return i},Use=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],$se=Use.concat("length","prototype"),Vse={f:Object.getOwnPropertyNames||function(e){return Hse(e,$se)}},Gse={f:Object.getOwnPropertySymbols},Wse=Xae([].concat),qse=lue("Reflect","ownKeys")||function(e){var t=Vse.f(tse(e)),n=Gse.f;return n?Wse(t,n(e)):t},Kse=function(e,t){for(var n=qse(t),r=ose.f,o=Jue.f,i=0;i<n.length;i++){var a=n[i];Pue(e,a)||r(e,a,o(t,a))}},Yse=/#|\.prototype\./,Xse=function(e,t){var n=Jse[Zse(e)];return n==ele||n!=Qse&&(aue(t)?jae(t):!!t)},Zse=Xse.normalize=function(e){return String(e).replace(Yse,".").toLowerCase()},Jse=Xse.data={},Qse=Xse.NATIVE="N",ele=Xse.POLYFILL="P",tle=Xse,nle=Jue.f,rle=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Lae:l?Lae[u]||Tue(u,{}):(Lae[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=nle(n,r))&&a.value:n[r],!tle(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Kse(i,o)}(e.sham||o&&o.sham)&&ise(i,"sham",!0),Tse(n,r,i,e)}},ole=Array.isArray||function(e){return"Array"==Qae(e)},ile={};ile[$ue("toStringTag")]="z";var ale="[object z]"===String(ile),ule=$ue("toStringTag"),sle=Lae.Object,lle="Arguments"==Qae(function(){return arguments}()),cle=ale?Qae:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=sle(e),ule))?n:lle?Qae(t):"Object"==(r=Qae(t))&&aue(t.callee)?"Arguments":r},fle=function(){},dle=[],ple=lue("Reflect","construct"),hle=/^\s*(?:class|function)\b/,vle=Xae(hle.exec),gle=!hle.exec(fle),yle=function(e){if(!aue(e))return!1;try{return ple(fle,dle,e),!0}catch(e){return!1}},mle=!ple||jae((function(){var e;return yle(yle.call)||!yle(Object)||!yle((function(){e=!0}))||e}))?function(e){if(!aue(e))return!1;switch(cle(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return gle||!!vle(hle,cse(e))}:yle,ble=function(e,t,n){var r=Wue(t);r in e?ose.f(e,r,Gae(0,n)):e[r]=n},Ele=$ue("species"),wle=Xae([].slice),Sle=("slice",gue>=51||!jae((function(){var e=[];return(e.constructor={})[Ele]=function(){return{foo:1}},1!==e.slice(Boolean).foo}))),Cle=$ue("species"),Dle=Lae.Array,Ale=Math.max;rle({target:"Array",proto:!0,forced:!Sle},{slice:function(e,t){var n,r,o,i=iue(this),a=Lse(i),u=Pse(e,a),s=Pse(void 0===t?a:t,a);if(ole(i)&&(n=i.constructor,(mle(n)&&(n===Dle||ole(n.prototype))||uue(n)&&null===(n=n[Cle]))&&(n=void 0),n===Dle||void 0===n))return wle(i,u,s);for(r=new(void 0===n?Dle:n)(Ale(s-u,0)),o=0;u<s;u++,o++)u in i&&ble(r,o,i[u]);return r.length=o,r}});var xle=ale?{}.toString:function(){return"[object "+cle(this)+"]"};ale||Tse(Object.prototype,"toString",xle,{unsafe:!0});var Ole,Tle=Lae.String,Nle=function(e){if("Symbol"===cle(e))throw TypeError("Cannot convert a Symbol value to a string");return Tle(e)},kle=function(){var e=tse(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ble=Lae.RegExp,Ile=jae((function(){var e=Ble("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Fle=Ile||jae((function(){return!Ble("a","y").sticky})),Ple={BROKEN_CARET:Ile||jae((function(){var e=Ble("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Fle,UNSUPPORTED_Y:Ile},Rle=Object.keys||function(e){return Hse(e,Use)},_le=Mae?Object.defineProperties:function(e,t){tse(e);for(var n,r=iue(t),o=Rle(t),i=o.length,a=0;i>a;)ose.f(e,n=o[a++],r[n]);return e},Lle=lue("document","documentElement"),jle=hse("IE_PROTO"),Mle=function(){},zle=function(e){return"<script>"+e+"<\/script>"},Hle=function(e){e.write(zle("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ule=function(){try{Ole=new ActiveXObject("htmlfile")}catch(e){}var e,t;Ule="undefined"!=typeof document?document.domain&&Ole?Hle(Ole):((t=Yue("iframe")).style.display="none",Lle.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(zle("document.F=Object")),e.close(),e.F):Hle(Ole);for(var n=Use.length;n--;)delete Ule.prototype[Use[n]];return Ule()};vse[jle]=!0;var $le,Vle,Gle=Object.create||function(e,t){var n;return null!==e?(Mle.prototype=tse(e),n=new Mle,Mle.prototype=null,n[jle]=e):n=Ule(),void 0===t?n:_le(n,t)},Wle=Lae.RegExp,qle=jae((function(){var e=Wle(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Kle=Lae.RegExp,Yle=jae((function(){var e=Kle("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xle=Cse.get,Zle=kue("native-string-replace",String.prototype.replace),Jle=RegExp.prototype.exec,Qle=Jle,ece=Xae("".charAt),tce=Xae("".indexOf),nce=Xae("".replace),rce=Xae("".slice),oce=(Vle=/b*/g,Hae(Jle,$le=/a/,"a"),Hae(Jle,Vle,"a"),0!==$le.lastIndex||0!==Vle.lastIndex),ice=Ple.BROKEN_CARET,ace=void 0!==/()??/.exec("")[1];(oce||ace||ice||qle||Yle)&&(Qle=function(e){var t,n,r,o,i,a,u,s=this,l=Xle(s),c=Nle(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Hae(Qle,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=ice&&s.sticky,h=Hae(kle,s),v=s.source,g=0,y=c;if(p&&(h=nce(h,"y",""),-1===tce(h,"g")&&(h+="g"),y=rce(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==ece(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),ace&&(n=new RegExp("^"+v+"$(?!\\s)",h)),oce&&(r=s.lastIndex),o=Hae(Jle,p?n:s,y),p?o?(o.input=rce(o.input,g),o[0]=rce(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:oce&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),ace&&o&&o.length>1&&Hae(Zle,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Gle(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var uce=Qle;rle({target:"RegExp",proto:!0,forced:/./.exec!==uce},{exec:uce});var sce=Function.prototype,lce=sce.apply,cce=sce.bind,fce=sce.call,dce="object"==typeof Reflect&&Reflect.apply||(cce?fce.bind(lce):function(){return fce.apply(lce,arguments)}),pce=$ue("species"),hce=RegExp.prototype,vce=$ue("match"),gce=Lae.TypeError,yce=$ue("species"),mce=function(e,t){var n,r=tse(e).constructor;return void 0===r||null==(n=tse(r)[yce])?t:function(e){if(mle(e))return e;throw gce(Sue(e)+" is not a constructor")}(n)},bce=Xae("".charAt),Ece=Xae("".charCodeAt),wce=Xae("".slice),Sce=function(e){return function(t,n){var r,o,i=Nle(oue(t)),a=Bse(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ece(i,a))<55296||r>56319||a+1===u||(o=Ece(i,a+1))<56320||o>57343?e?bce(i,a):r:e?wce(i,a,a+2):o-56320+(r-55296<<10)+65536}},Cce={codeAt:Sce(!1),charAt:Sce(!0)},Dce=Cce.charAt,Ace=function(e,t,n){return t+(n?Dce(e,t).length:1)},xce=Lae.Array,Oce=Math.max,Tce=function(e,t,n){for(var r=Lse(e),o=Pse(t,r),i=Pse(void 0===n?r:n,r),a=xce(Oce(i-o,0)),u=0;o<i;o++,u++)ble(a,u,e[o]);return a.length=u,a},Nce=Lae.TypeError,kce=function(e,t){var n=e.exec;if(aue(n)){var r=Hae(n,e,t);return null!==r&&tse(r),r}if("RegExp"===Qae(e))return Hae(uce,e,t);throw Nce("RegExp#exec called on incompatible receiver")},Bce=Ple.UNSUPPORTED_Y,Ice=Math.min,Fce=[].push,Pce=Xae(/./.exec),Rce=Xae(Fce),_ce=Xae("".slice);!function(e,t,n,r){var o=$ue(e),i=!jae((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!jae((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[pce]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Xae(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Nle(oue(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!uue(r=e)||!(void 0!==(o=r[vce])?o:"RegExp"==Qae(r)))return Hae(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Hae(uce,p,i))&&!((s=p.lastIndex)>d&&(Rce(c,_ce(i,d,u.index)),u.length>1&&u.index<i.length&&dce(Fce,c,Tce(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Pce(p,"")||Rce(c,""):Rce(c,_ce(i,d)),c.length>a?Tce(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Hae(t,this,e,n)}:t,[function(t,n){var o=oue(this),i=null==t?void 0:Aue(t,e);return i?Hae(i,t,o,n):Hae(r,Nle(o),t,n)},function(e,o){var i=tse(this),a=Nle(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=mce(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Bce?"g":"y"),f=new s(Bce?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===kce(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Bce?0:h;var g,y=kce(f,Bce?_ce(a,h):a);if(null===y||(g=Ice(_se(f.lastIndex+(Bce?h:0)),a.length))===p)h=Ace(a,h,l);else{if(Rce(v,_ce(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Rce(v,y[m]),v.length===d)return v;h=p=g}}return Rce(v,_ce(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=Xae(e),s=t.exec;return s===uce||s===hce.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));Tse(String.prototype,e,s[0]),Tse(hce,o,s[1])}r&&ise(hce[o],"sham",!0)}("split",0,!!jae((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Bce);var Lce=function(){return Lce=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lce.apply(this,arguments)};function jce(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function Mce(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}}function zce(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var Hce=$ue("unscopables"),Uce=Array.prototype;null==Uce[Hce]&&ose.f(Uce,Hce,{configurable:!0,value:Gle(null)});var $ce,Vce,Gce,Wce=function(e){Uce[Hce][e]=!0},qce={},Kce=!jae((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Yce=hse("IE_PROTO"),Xce=Lae.Object,Zce=Xce.prototype,Jce=Kce?Xce.getPrototypeOf:function(e){var t=Iue(e);if(Pue(t,Yce))return t[Yce];var n=t.constructor;return aue(n)&&t instanceof n?n.prototype:t instanceof Xce?Zce:null},Qce=$ue("iterator"),efe=!1;[].keys&&("next"in(Gce=[].keys())?(Vce=Jce(Jce(Gce)))!==Object.prototype&&($ce=Vce):efe=!0);var tfe=null==$ce||jae((function(){var e={};return $ce[Qce].call(e)!==e}));tfe&&($ce={}),aue($ce[Qce])||Tse($ce,Qce,(function(){return this}));var nfe={IteratorPrototype:$ce,BUGGY_SAFARI_ITERATORS:efe},rfe=ose.f,ofe=$ue("toStringTag"),ife=function(e,t,n){e&&!Pue(e=n?e:e.prototype,ofe)&&rfe(e,ofe,{configurable:!0,value:t})},afe=nfe.IteratorPrototype,ufe=function(){return this},sfe=Lae.String,lfe=Lae.TypeError,cfe=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Xae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return tse(n),function(e){if("object"==typeof e||aue(e))return e;throw lfe("Can't set "+sfe(e)+" as a prototype")}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ffe=Ose.PROPER,dfe=Ose.CONFIGURABLE,pfe=nfe.IteratorPrototype,hfe=nfe.BUGGY_SAFARI_ITERATORS,vfe=$ue("iterator"),gfe=function(){return this},yfe=function(e,t,n,r,o,i,a){!function(e,t,n,r){var o=t+" Iterator";e.prototype=Gle(afe,{next:Gae(1,n)}),ife(e,o,!1),qce[o]=ufe}(n,t,r);var u,s,l,c=function(e){if(e===o&&v)return v;if(!hfe&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[vfe]||p["@@iterator"]||o&&p[o],v=!hfe&&h||c(o),g="Array"==t&&p.entries||h;if(g&&(u=Jce(g.call(new e)))!==Object.prototype&&u.next&&(Jce(u)!==pfe&&(cfe?cfe(u,pfe):aue(u[vfe])||Tse(u,vfe,gfe)),ife(u,f,!0)),ffe&&"values"==o&&h&&"values"!==h.name&&(dfe?ise(p,"name","values"):(d=!0,v=function(){return Hae(h,this)})),o)if(s={values:c("values"),keys:i?v:c("keys"),entries:c("entries")},a)for(l in s)(hfe||d||!(l in p))&&Tse(p,l,s[l]);else rle({target:t,proto:!0,forced:hfe||d},s);return p[vfe]!==v&&Tse(p,vfe,v,{name:o}),qce[t]=v,s},mfe=Cse.set,bfe=Cse.getterFor("Array Iterator"),Efe=yfe(Array,"Array",(function(e,t){mfe(this,{type:"Array Iterator",target:iue(e),index:0,kind:t})}),(function(){var e=bfe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");qce.Arguments=qce.Array,Wce("keys"),Wce("values"),Wce("entries");var wfe=Cce.charAt,Sfe=Cse.set,Cfe=Cse.getterFor("String Iterator");yfe(String,"String",(function(e){Sfe(this,{type:"String Iterator",string:Nle(e),index:0})}),(function(){var e,t=Cfe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wfe(n,r),t.index+=e.length,{value:e,done:!1})}));var Dfe=function(e,t,n){for(var r in t)Tse(e,r,t[r],n);return e},Afe=Vse.f,xfe="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ofe={f:function(e){return xfe&&"Window"==Qae(e)?function(e){try{return Afe(e)}catch(e){return Tce(xfe)}}(e):Afe(iue(e))}},Tfe=jae((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Nfe=Object.isExtensible,kfe=jae((function(){Nfe(1)}))||Tfe?function(e){return!!uue(e)&&(!Tfe||"ArrayBuffer"!=Qae(e))&&(!Nfe||Nfe(e))}:Nfe,Bfe=!jae((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ife=Fae((function(e){var t=ose.f,n=!1,r=jue("meta"),o=0,i=function(e){t(e,r,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},n=!0;var e=Vse.f,t=Xae([].splice),o={};o[r]=1,e(o).length&&(Vse.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===r){t(o,i,1);break}return o},rle({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Ofe.f}))},fastKey:function(e,t){if(!uue(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Pue(e,r)){if(!kfe(e))return"F";if(!t)return"E";i(e)}return e[r].objectID},getWeakData:function(e,t){if(!Pue(e,r)){if(!kfe(e))return!0;if(!t)return!1;i(e)}return e[r].weakData},onFreeze:function(e){return Bfe&&n&&kfe(e)&&!Pue(e,r)&&i(e),e}};vse[r]=!0})),Ffe=Xae(Xae.bind),Pfe=function(e,t){return Due(e),void 0===t?e:Ffe?Ffe(e,t):function(){return e.apply(t,arguments)}},Rfe=$ue("iterator"),_fe=Array.prototype,Lfe=$ue("iterator"),jfe=function(e){if(null!=e)return Aue(e,Lfe)||Aue(e,"@@iterator")||qce[cle(e)]},Mfe=Lae.TypeError,zfe=function(e,t,n){var r,o;tse(e);try{if(!(r=Aue(e,"return"))){if("throw"===t)throw n;return n}r=Hae(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return tse(r),n},Hfe=Lae.TypeError,Ufe=function(e,t){this.stopped=e,this.result=t},$fe=Ufe.prototype,Vfe=function(e,t,n){var r,o,i,a,u,s,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=Pfe(t,f),g=function(e){return r&&zfe(r,"normal",e),new Ufe(!0,e)},y=function(e){return d?(tse(e),h?v(e[0],e[1],g):v(e[0],e[1])):h?v(e,g):v(e)};if(p)r=e;else{if(!(o=jfe(e)))throw Hfe(Sue(e)+" is not iterable");if(void 0!==(c=o)&&(qce.Array===c||_fe[Rfe]===c)){for(i=0,a=Lse(e);a>i;i++)if((u=y(e[i]))&&cue($fe,u))return u;return new Ufe(!1)}r=function(e,t){var n=arguments.length<2?jfe(e):t;if(Due(n))return tse(Hae(n,e));throw Mfe(Sue(e)+" is not iterable")}(e,o)}for(s=r.next;!(l=Hae(s,r)).done;){try{u=y(l.value)}catch(e){zfe(r,"throw",e)}if("object"==typeof u&&u&&cue($fe,u))return u}return new Ufe(!1)},Gfe=Lae.TypeError,Wfe=function(e,t){if(cue(t,e))return e;throw Gfe("Incorrect invocation")},qfe=$ue("iterator"),Kfe=!1;try{var Yfe=0,Xfe={next:function(){return{done:!!Yfe++}},return:function(){Kfe=!0}};Xfe[qfe]=function(){return this},Array.from(Xfe,(function(){throw 2}))}catch(Ml){}var Zfe=function(e,t){if(!t&&!Kfe)return!1;var n=!1;try{var r={};r[qfe]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Jfe=$ue("species"),Qfe=Lae.Array,ede=function(e,t){return new(function(e){var t;return ole(e)&&(t=e.constructor,(mle(t)&&(t===Qfe||ole(t.prototype))||uue(t)&&null===(t=t[Jfe]))&&(t=void 0)),void 0===t?Qfe:t}(e))(0===t?0:t)},tde=Xae([].push),nde=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Iue(s),v=nue(h),g=Pfe(l,c),y=Lse(v),m=0,b=f||ede,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tde(E,d)}else switch(e){case 4:return!1;case 7:tde(E,d)}return i?-1:r||o?o:E}},rde={forEach:nde(0),map:nde(1),filter:nde(2),some:nde(3),every:nde(4),find:nde(5),findIndex:nde(6),filterReject:nde(7)},ode=Ife.getWeakData,ide=Cse.set,ade=Cse.getterFor,ude=rde.find,sde=rde.findIndex,lde=Xae([].splice),cde=0,fde=function(e){return e.frozen||(e.frozen=new dde)},dde=function(){this.entries=[]},pde=function(e,t){return ude(e.entries,(function(e){return e[0]===t}))};dde.prototype={get:function(e){var t=pde(this,e);if(t)return t[1]},has:function(e){return!!pde(this,e)},set:function(e,t){var n=pde(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=sde(this.entries,(function(t){return t[0]===e}));return~t&&lde(this.entries,t,1),!!~t}};var hde,vde={getConstructor:function(e,t,n,r){var o=e((function(e,o){Wfe(e,i),ide(e,{type:t,id:cde++,frozen:void 0}),null!=o&&Vfe(o,e[r],{that:e,AS_ENTRIES:n})})),i=o.prototype,a=ade(t),u=function(e,t,n){var r=a(e),o=ode(tse(t),!0);return!0===o?fde(r).set(t,n):o[r.id]=n,e};return Dfe(i,{delete:function(e){var t=a(this);if(!uue(e))return!1;var n=ode(e);return!0===n?fde(t).delete(e):n&&Pue(n,t.id)&&delete n[t.id]},has:function(e){var t=a(this);if(!uue(e))return!1;var n=ode(e);return!0===n?fde(t).has(e):n&&Pue(n,t.id)}}),Dfe(i,n?{get:function(e){var t=a(this);if(uue(e)){var n=ode(e);return!0===n?fde(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return u(this,e,t)}}:{add:function(e){return u(this,e,!0)}}),o}},gde=Cse.enforce,yde=!Lae.ActiveXObject&&"ActiveXObject"in Lae,mde=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},bde=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Lae[e],u=a&&a.prototype,s=a,l={},c=function(e){var t=Xae(u[e]);Tse(u,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!uue(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return o&&!uue(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!uue(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(tle(e,!aue(a)||!(o||u.forEach&&!jae((function(){(new a).entries().next()})))))s=n.getConstructor(t,e,r,i),Ife.enable();else if(tle(e,!0)){var f=new s,d=f[i](o?{}:-0,1)!=f,p=jae((function(){f.has(1)})),h=Zfe((function(e){new a(e)})),v=!o&&jae((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((s=t((function(e,t){Wfe(e,u);var n=function(e,t,n){var r,o;return cfe&&aue(r=t.constructor)&&r!==n&&uue(o=r.prototype)&&o!==n.prototype&&cfe(e,o),e}(new a,e,s);return null!=t&&Vfe(t,n[i],{that:n,AS_ENTRIES:r}),n}))).prototype=u,u.constructor=s),(p||v)&&(c("delete"),c("has"),r&&c("get")),(v||d)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,rle({global:!0,forced:s!=a},l),ife(s,e),o||n.setStrong(s,e,r),s}("WeakMap",mde,vde);if(dse&&yde){hde=vde.getConstructor(mde,"WeakMap",!0),Ife.enable();var Ede=bde.prototype,wde=Xae(Ede.delete),Sde=Xae(Ede.has),Cde=Xae(Ede.get),Dde=Xae(Ede.set);Dfe(Ede,{delete:function(e){if(uue(e)&&!kfe(e)){var t=gde(this);return t.frozen||(t.frozen=new hde),wde(this,e)||t.frozen.delete(e)}return wde(this,e)},has:function(e){if(uue(e)&&!kfe(e)){var t=gde(this);return t.frozen||(t.frozen=new hde),Sde(this,e)||t.frozen.has(e)}return Sde(this,e)},get:function(e){if(uue(e)&&!kfe(e)){var t=gde(this);return t.frozen||(t.frozen=new hde),Sde(this,e)?Cde(this,e):t.frozen.get(e)}return Cde(this,e)},set:function(e,t){if(uue(e)&&!kfe(e)){var n=gde(this);n.frozen||(n.frozen=new hde),Sde(this,e)?Dde(this,e,t):n.frozen.set(e,t)}else Dde(this,e,t);return this}})}var Ade={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},xde=Yue("span").classList,Ode=xde&&xde.constructor&&xde.constructor.prototype,Tde=Ode===Object.prototype?void 0:Ode,Nde=$ue("iterator"),kde=$ue("toStringTag"),Bde=Efe.values,Ide=function(e,t){if(e){if(e[Nde]!==Bde)try{ise(e,Nde,Bde)}catch(t){e[Nde]=Bde}if(e[kde]||ise(e,kde,t),Ade[t])for(var n in Efe)if(e[n]!==Efe[n])try{ise(e,n,Efe[n])}catch(t){e[n]=Efe[n]}}};for(var Fde in Ade)Ide(Lae[Fde]&&Lae[Fde].prototype,Fde);Ide(Tde,"DOMTokenList");var Pde=function(e,t){var n=[][e];return!!n&&jae((function(){n.call(null,t||function(){throw 1},1)}))},Rde=rde.forEach,_de=Pde("forEach")?[].forEach:function(e){return Rde(this,e,arguments.length>1?arguments[1]:void 0)},Lde=function(e){if(e&&e.forEach!==_de)try{ise(e,"forEach",_de)}catch(t){e.forEach=_de}};for(var jde in Ade)Ade[jde]&&Lde(Lae[jde]&&Lae[jde].prototype);Lde(Tde);var Mde,zde,Hde,Ude,$de=Lae.Promise,Vde=$ue("species"),Gde=/(?:ipad|iphone|ipod).*applewebkit/i.test(fue),Wde="process"==Qae(Lae.process),qde=Lae.setImmediate,Kde=Lae.clearImmediate,Yde=Lae.process,Xde=Lae.Dispatch,Zde=Lae.Function,Jde=Lae.MessageChannel,Qde=Lae.String,epe=0,tpe={};try{Mde=Lae.location}catch(Ml){}var npe=function(e){if(Pue(tpe,e)){var t=tpe[e];delete tpe[e],t()}},rpe=function(e){return function(){npe(e)}},ope=function(e){npe(e.data)},ipe=function(e){Lae.postMessage(Qde(e),Mde.protocol+"//"+Mde.host)};qde&&Kde||(qde=function(e){var t=wle(arguments,1);return tpe[++epe]=function(){dce(aue(e)?e:Zde(e),void 0,t)},zde(epe),epe},Kde=function(e){delete tpe[e]},Wde?zde=function(e){Yde.nextTick(rpe(e))}:Xde&&Xde.now?zde=function(e){Xde.now(rpe(e))}:Jde&&!Gde?(Ude=(Hde=new Jde).port2,Hde.port1.onmessage=ope,zde=Pfe(Ude.postMessage,Ude)):Lae.addEventListener&&aue(Lae.postMessage)&&!Lae.importScripts&&Mde&&"file:"!==Mde.protocol&&!jae(ipe)?(zde=ipe,Lae.addEventListener("message",ope,!1)):zde="onreadystatechange"in Yue("script")?function(e){Lle.appendChild(Yue("script")).onreadystatechange=function(){Lle.removeChild(this),npe(e)}}:function(e){setTimeout(rpe(e),0)});var ape,upe,spe,lpe,cpe,fpe,dpe,ppe,hpe={set:qde,clear:Kde},vpe=/ipad|iphone|ipod/i.test(fue)&&void 0!==Lae.Pebble,gpe=/web0s(?!.*chrome)/i.test(fue),ype=Jue.f,mpe=hpe.set,bpe=Lae.MutationObserver||Lae.WebKitMutationObserver,Epe=Lae.document,wpe=Lae.process,Spe=Lae.Promise,Cpe=ype(Lae,"queueMicrotask"),Dpe=Cpe&&Cpe.value;Dpe||(ape=function(){var e,t;for(Wde&&(e=wpe.domain)&&e.exit();upe;){t=upe.fn,upe=upe.next;try{t()}catch(e){throw upe?lpe():spe=void 0,e}}spe=void 0,e&&e.enter()},Gde||Wde||gpe||!bpe||!Epe?!vpe&&Spe&&Spe.resolve?((dpe=Spe.resolve(void 0)).constructor=Spe,ppe=Pfe(dpe.then,dpe),lpe=function(){ppe(ape)}):Wde?lpe=function(){wpe.nextTick(ape)}:(mpe=Pfe(mpe,Lae),lpe=function(){mpe(ape)}):(cpe=!0,fpe=Epe.createTextNode(""),new bpe(ape).observe(fpe,{characterData:!0}),lpe=function(){fpe.data=cpe=!cpe}));var Ape,xpe,Ope,Tpe,Npe=Dpe||function(e){var t={fn:e,next:void 0};spe&&(spe.next=t),upe||(upe=t,lpe()),spe=t},kpe=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Due(t),this.reject=Due(n)},Bpe={f:function(e){return new kpe(e)}},Ipe=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Fpe="object"==typeof window,Ppe=hpe.set,Rpe=$ue("species"),_pe="Promise",Lpe=Cse.getterFor(_pe),jpe=Cse.set,Mpe=Cse.getterFor(_pe),zpe=$de&&$de.prototype,Hpe=$de,Upe=zpe,$pe=Lae.TypeError,Vpe=Lae.document,Gpe=Lae.process,Wpe=Bpe.f,qpe=Wpe,Kpe=!!(Vpe&&Vpe.createEvent&&Lae.dispatchEvent),Ype=aue(Lae.PromiseRejectionEvent),Xpe=!1,Zpe=tle(_pe,(function(){var e=cse(Hpe),t=e!==String(Hpe);if(!t&&66===gue)return!0;if(gue>=51&&/native code/.test(e))return!1;var n=new Hpe((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Rpe]=r,!(Xpe=n.then((function(){}))instanceof r)||!t&&Fpe&&!Ype})),Jpe=Zpe||!Zfe((function(e){Hpe.all(e).catch((function(){}))})),Qpe=function(e){var t;return!(!uue(e)||!aue(t=e.then))&&t},ehe=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Npe((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,u,s,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&ohe(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),s=!0)),a===l.promise?d($pe("Promise-chain cycle")):(u=Qpe(a))?Hae(u,a,f,d):f(a)):d(r)}catch(e){p&&!s&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&nhe(e)}))}},the=function(e,t,n){var r,o;Kpe?((r=Vpe.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Lae.dispatchEvent(r)):r={promise:t,reason:n},!Ype&&(o=Lae["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Lae.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},nhe=function(e){Hae(Ppe,Lae,(function(){var t,n=e.facade,r=e.value;if(rhe(e)&&(t=Ipe((function(){Wde?Gpe.emit("unhandledRejection",r,n):the("unhandledrejection",n,r)})),e.rejection=Wde||rhe(e)?2:1,t.error))throw t.value}))},rhe=function(e){return 1!==e.rejection&&!e.parent},ohe=function(e){Hae(Ppe,Lae,(function(){var t=e.facade;Wde?Gpe.emit("rejectionHandled",t):the("rejectionhandled",t,e.value)}))},ihe=function(e,t,n){return function(r){e(t,r,n)}},ahe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ehe(e,!0))},uhe=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $pe("Promise can't be resolved itself");var r=Qpe(t);r?Npe((function(){var n={done:!1};try{Hae(r,t,ihe(uhe,n,e),ihe(ahe,n,e))}catch(t){ahe(n,t,e)}})):(e.value=t,e.state=1,ehe(e,!1))}catch(t){ahe({done:!1},t,e)}}};if(Zpe&&(Upe=(Hpe=function(e){Wfe(this,Upe),Due(e),Hae(Ape,this);var t=Lpe(this);try{e(ihe(uhe,t),ihe(ahe,t))}catch(e){ahe(t,e)}}).prototype,(Ape=function(e){jpe(this,{type:_pe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Dfe(Upe,{then:function(e,t){var n=Mpe(this),r=n.reactions,o=Wpe(mce(this,Hpe));return o.ok=!aue(e)||e,o.fail=aue(t)&&t,o.domain=Wde?Gpe.domain:void 0,n.parent=!0,r[r.length]=o,0!=n.state&&ehe(n,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),xpe=function(){var e=new Ape,t=Lpe(e);this.promise=e,this.resolve=ihe(uhe,t),this.reject=ihe(ahe,t)},Bpe.f=Wpe=function(e){return e===Hpe||e===Ope?new xpe(e):qpe(e)},aue($de)&&zpe!==Object.prototype)){Tpe=zpe.then,Xpe||(Tse(zpe,"then",(function(e,t){var n=this;return new Hpe((function(e,t){Hae(Tpe,n,e,t)})).then(e,t)}),{unsafe:!0}),Tse(zpe,"catch",Upe.catch,{unsafe:!0}));try{delete zpe.constructor}catch(Ml){}cfe&&cfe(zpe,Upe)}rle({global:!0,wrap:!0,forced:Zpe},{Promise:Hpe}),ife(Hpe,_pe,!1),function(e){var t=lue("Promise"),n=ose.f;Mae&&t&&!t[Vde]&&n(t,Vde,{configurable:!0,get:function(){return this}})}(),Ope=lue(_pe),rle({target:_pe,stat:!0,forced:Zpe},{reject:function(e){var t=Wpe(this);return Hae(t.reject,void 0,e),t.promise}}),rle({target:_pe,stat:!0,forced:Zpe},{resolve:function(e){return function(e,t){if(tse(e),uue(t)&&t.constructor===e)return t;var n=Bpe.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),rle({target:_pe,stat:!0,forced:Jpe},{all:function(e){var t=this,n=Wpe(t),r=n.resolve,o=n.reject,i=Ipe((function(){var n=Due(t.resolve),i=[],a=0,u=1;Vfe(e,(function(e){var s=a++,l=!1;u++,Hae(n,t,e).then((function(e){l||(l=!0,i[s]=e,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Wpe(t),r=n.reject,o=Ipe((function(){var o=Due(t.resolve);Vfe(e,(function(e){Hae(o,t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var she=Ose.PROPER,lhe=RegExp.prototype,che=lhe.toString,fhe=Xae(kle),dhe=jae((function(){return"/a/b"!=che.call({source:"a",flags:"b"})})),phe=she&&"toString"!=che.name;(dhe||phe)&&Tse(RegExp.prototype,"toString",(function(){var e=tse(this),t=Nle(e.source),n=e.flags;return"/"+t+"/"+Nle(void 0===n&&cue(lhe,e)&&!("flags"in lhe)?fhe(e):n)}),{unsafe:!0});var hhe=Ose.EXISTS,vhe=ose.f,ghe=Function.prototype,yhe=Xae(ghe.toString),mhe=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bhe=Xae(mhe.exec);Mae&&!hhe&&vhe(ghe,"name",{configurable:!0,get:function(){try{return bhe(mhe,yhe(this))[1]}catch(e){return""}}});var Ehe=new WeakMap;function whe(e){return e.getMenuConfig("uploadImage")}function She(e,t){return jce(this,void 0,void 0,(function(){return Mce(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;VH(e,i,t.name,a),n("ok")}}}))]}))}))}function Che(e,t){return jce(this,void 0,void 0,(function(){var n,r,o,i;return Mce(this,(function(a){switch(a.label){case 0:return n=function(e){var t=Ehe.get(e);if(null!=t)return t;var n=whe(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=KI(Lce(Lce({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,(function(t,n,r){return VH(e,t,n,r)})),void r(t,n);var o=n.errno,u=void 0===o?1:o,s=n.data,l=void 0===s?{}:s;if(0===u){if(Array.isArray(l))l.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;VH(e,r,i,void 0===a?"":a)}));else{var c=l.url,f=void 0===c?"":c,d=l.alt,p=void 0===d?"":d,h=l.href;VH(e,f,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}})),Ehe.set(e,t),t}(e),r=t.name,o=t.type,i=t.size,n.addFile({name:r,type:o,size:i,data:t}),[4,n.upload()];case 1:return a.sent(),[2]}}))}))}function Dhe(e,t){var n,r;return jce(this,void 0,void 0,(function(){var o,i,a,u,s,l,c,f,d;return Mce(this,(function(p){switch(p.label){case 0:if(null==t)return[2];o=Array.prototype.slice.call(t),i=whe(e),a=i.customUpload,u=i.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),s=zce(o),p.label=2;case 2:return[4,s.next()];case 3:return(l=p.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,She(e,c)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return a?[4,a(c,(function(t,n,r){return VH(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,Che(e,c)];case 8:p.sent(),p.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return d=p.sent(),n={error:d},[3,17];case 12:return p.trys.push([12,,15,16]),l&&!l.done&&(r=s.return)?[4,r.call(s)]:[3,14];case 13:p.sent(),p.label=14;case 14:return[3,16];case 15:if(n)throw n.error;return[7];case 16:return[7];case 17:return[2]}}))}))}var Ahe=Xae([].join),xhe=nue!=Object,Ohe=Pde("join",",");rle({target:"Array",proto:!0,forced:xhe||!Ohe},{join:function(e){return Ahe(iue(this),void 0===e?",":e)}}),ah&&(Mp.fn.append=ah),qp&&(Mp.fn.on=qp),dh&&(Mp.fn.remove=dh),Wp&&(Mp.fn.val=Wp),gh&&(Mp.fn.click=gh),Jp&&(Mp.fn.hide=Jp);var The=function(){function e(){this.title=UF("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return GH(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return VH(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var u=Mp("body"),s=Mp('<input type="file" '+a+" multiple/>");s.hide(),u.append(s),s.click(),s.on("change",(function(){var t=s[0].files;Dhe(e,t)}))}},e}(),Nhe={menus:[{key:"uploadImage",factory:function(){return new The},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,n){console.error("'"+e.name+"' upload error",n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(GH(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e.type.split("/"),1)[0]}))?Dhe(e,o):t(r)}},n}};MF("en",{highLightModule:{selectLang:"Language"}}),MF("zh-CN",{highLightModule:{selectLang:"选择语言"}});var khe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Bhe(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ihe,Fhe,Phe=function(e){return e&&e.Math==Math&&e},Rhe=Phe("object"==typeof globalThis&&globalThis)||Phe("object"==typeof window&&window)||Phe("object"==typeof self&&self)||Phe("object"==typeof khe&&khe)||function(){return this}()||Function("return this")(),_he=Object.defineProperty,Lhe=function(e,t){try{_he(Rhe,e,{value:t,configurable:!0,writable:!0})}catch(n){Rhe[e]=t}return t},jhe=Rhe["__core-js_shared__"]||Lhe("__core-js_shared__",{}),Mhe=Bhe((function(e){(e.exports=function(e,t){return jhe[e]||(jhe[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),zhe=Function.prototype,Hhe=zhe.bind,Uhe=zhe.call,$he=Hhe&&Hhe.bind(Uhe),Vhe=Hhe?function(e){return e&&$he(Uhe,e)}:function(e){return e&&function(){return Uhe.apply(e,arguments)}},Ghe=Rhe.TypeError,Whe=function(e){if(null==e)throw Ghe("Can't call method on "+e);return e},qhe=Rhe.Object,Khe=function(e){return qhe(Whe(e))},Yhe=Vhe({}.hasOwnProperty),Xhe=Object.hasOwn||function(e,t){return Yhe(Khe(e),t)},Zhe=0,Jhe=Math.random(),Qhe=Vhe(1..toString),eve=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qhe(++Zhe+Jhe,36)},tve=function(e){return"function"==typeof e},nve=function(e){return tve(e)?e:void 0},rve=function(e,t){return arguments.length<2?nve(Rhe[e]):Rhe[e]&&Rhe[e][t]},ove=rve("navigator","userAgent")||"",ive=Rhe.process,ave=Rhe.Deno,uve=ive&&ive.versions||ave&&ave.version,sve=uve&&uve.v8;sve&&(Fhe=(Ihe=sve.split("."))[0]>0&&Ihe[0]<4?1:+(Ihe[0]+Ihe[1])),!Fhe&&ove&&(!(Ihe=ove.match(/Edge\/(\d+)/))||Ihe[1]>=74)&&(Ihe=ove.match(/Chrome\/(\d+)/))&&(Fhe=+Ihe[1]);var lve=Fhe,cve=function(e){try{return!!e()}catch(e){return!0}},fve=!!Object.getOwnPropertySymbols&&!cve((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&lve&&lve<41})),dve=fve&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pve=Mhe("wks"),hve=Rhe.Symbol,vve=hve&&hve.for,gve=dve?hve:hve&&hve.withoutSetter||eve,yve=function(e){if(!Xhe(pve,e)||!fve&&"string"!=typeof pve[e]){var t="Symbol."+e;fve&&Xhe(hve,e)?pve[e]=hve[e]:pve[e]=dve&&vve?vve(t):gve(t)}return pve[e]},mve={};mve[yve("toStringTag")]="z";var bve="[object z]"===String(mve),Eve=!cve((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),wve=function(e){return"object"==typeof e?null!==e:tve(e)},Sve=Rhe.document,Cve=wve(Sve)&&wve(Sve.createElement),Dve=function(e){return Cve?Sve.createElement(e):{}},Ave=!Eve&&!cve((function(){return 7!=Object.defineProperty(Dve("div"),"a",{get:function(){return 7}}).a})),xve=Rhe.String,Ove=Rhe.TypeError,Tve=function(e){if(wve(e))return e;throw Ove(xve(e)+" is not an object")},Nve=Function.prototype.call,kve=Nve.bind?Nve.bind(Nve):function(){return Nve.apply(Nve,arguments)},Bve=Vhe({}.isPrototypeOf),Ive=Rhe.Object,Fve=dve?function(e){return"symbol"==typeof e}:function(e){var t=rve("Symbol");return tve(t)&&Bve(t.prototype,Ive(e))},Pve=Rhe.String,Rve=function(e){try{return Pve(e)}catch(e){return"Object"}},_ve=Rhe.TypeError,Lve=function(e){if(tve(e))return e;throw _ve(Rve(e)+" is not a function")},jve=function(e,t){var n=e[t];return null==n?void 0:Lve(n)},Mve=Rhe.TypeError,zve=Rhe.TypeError,Hve=yve("toPrimitive"),Uve=function(e){var t=function(e,t){if(!wve(e)||Fve(e))return e;var n,r=jve(e,Hve);if(r){if(void 0===t&&(t="default"),n=kve(r,e,t),!wve(n)||Fve(n))return n;throw zve("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&tve(n=e.toString)&&!wve(r=kve(n,e)))return r;if(tve(n=e.valueOf)&&!wve(r=kve(n,e)))return r;if("string"!==t&&tve(n=e.toString)&&!wve(r=kve(n,e)))return r;throw Mve("Can't convert object to primitive value")}(e,t)}(e,"string");return Fve(t)?t:t+""},$ve=Rhe.TypeError,Vve=Object.defineProperty,Gve={f:Eve?Vve:function(e,t,n){if(Tve(e),t=Uve(t),Tve(n),Ave)try{return Vve(e,t,n)}catch(e){}if("get"in n||"set"in n)throw $ve("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Wve=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},qve=Eve?function(e,t,n){return Gve.f(e,t,Wve(1,n))}:function(e,t,n){return e[t]=n,e},Kve=Vhe(Function.toString);tve(jhe.inspectSource)||(jhe.inspectSource=function(e){return Kve(e)});var Yve,Xve,Zve,Jve=jhe.inspectSource,Qve=Rhe.WeakMap,ege=tve(Qve)&&/native code/.test(Jve(Qve)),tge=Mhe("keys"),nge=function(e){return tge[e]||(tge[e]=eve(e))},rge={},oge=Rhe.TypeError,ige=Rhe.WeakMap;if(ege||jhe.state){var age=jhe.state||(jhe.state=new ige),uge=Vhe(age.get),sge=Vhe(age.has),lge=Vhe(age.set);Yve=function(e,t){if(sge(age,e))throw new oge("Object already initialized");return t.facade=e,lge(age,e,t),t},Xve=function(e){return uge(age,e)||{}},Zve=function(e){return sge(age,e)}}else{var cge=nge("state");rge[cge]=!0,Yve=function(e,t){if(Xhe(e,cge))throw new oge("Object already initialized");return t.facade=e,qve(e,cge,t),t},Xve=function(e){return Xhe(e,cge)?e[cge]:{}},Zve=function(e){return Xhe(e,cge)}}var fge={set:Yve,get:Xve,has:Zve,enforce:function(e){return Zve(e)?Xve(e):Yve(e,{})},getterFor:function(e){return function(t){var n;if(!wve(t)||(n=Xve(t)).type!==e)throw oge("Incompatible receiver, "+e+" required");return n}}},dge=Function.prototype,pge=Eve&&Object.getOwnPropertyDescriptor,hge=Xhe(dge,"name"),vge={EXISTS:hge,PROPER:hge&&"something"===function(){}.name,CONFIGURABLE:hge&&(!Eve||Eve&&pge(dge,"name").configurable)},gge=Bhe((function(e){var t=vge.CONFIGURABLE,n=fge.get,r=fge.enforce,o=String(String).split("String");(e.exports=function(e,n,i,a){var u,s=!!a&&!!a.unsafe,l=!!a&&!!a.enumerable,c=!!a&&!!a.noTargetGet,f=a&&void 0!==a.name?a.name:n;tve(i)&&("Symbol("===String(f).slice(0,7)&&(f="["+String(f).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xhe(i,"name")||t&&i.name!==f)&&qve(i,"name",f),(u=r(i)).source||(u.source=o.join("string"==typeof f?f:""))),e!==Rhe?(s?!c&&e[n]&&(l=!0):delete e[n],l?e[n]=i:qve(e,n,i)):l?e[n]=i:Lhe(n,i)})(Function.prototype,"toString",(function(){return tve(this)&&n(this).source||Jve(this)}))})),yge=Vhe({}.toString),mge=Vhe("".slice),bge=function(e){return mge(yge(e),8,-1)},Ege=yve("toStringTag"),wge=Rhe.Object,Sge="Arguments"==bge(function(){return arguments}()),Cge=bve?bge:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=wge(e),Ege))?n:Sge?bge(t):"Object"==(r=bge(t))&&tve(t.callee)?"Arguments":r},Dge=bve?{}.toString:function(){return"[object "+Cge(this)+"]"};bve||gge(Object.prototype,"toString",Dge,{unsafe:!0});var Age,xge={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Oge=Dve("span").classList,Tge=Oge&&Oge.constructor&&Oge.constructor.prototype,Nge=Tge===Object.prototype?void 0:Tge,kge=Vhe(Vhe.bind),Bge=Rhe.Object,Ige=Vhe("".split),Fge=cve((function(){return!Bge("z").propertyIsEnumerable(0)}))?function(e){return"String"==bge(e)?Ige(e,""):Bge(e)}:Bge,Pge=Math.ceil,Rge=Math.floor,_ge=function(e){var t=+e;return t!=t||0===t?0:(t>0?Rge:Pge)(t)},Lge=Math.min,jge=function(e){return e>0?Lge(_ge(e),9007199254740991):0},Mge=function(e){return jge(e.length)},zge=Array.isArray||function(e){return"Array"==bge(e)},Hge=function(){},Uge=[],$ge=rve("Reflect","construct"),Vge=/^\s*(?:class|function)\b/,Gge=Vhe(Vge.exec),Wge=!Vge.exec(Hge),qge=function(e){if(!tve(e))return!1;try{return $ge(Hge,Uge,e),!0}catch(e){return!1}},Kge=!$ge||cve((function(){var e;return qge(qge.call)||!qge(Object)||!qge((function(){e=!0}))||e}))?function(e){if(!tve(e))return!1;switch(Cge(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Wge||!!Gge(Vge,Jve(e))}:qge,Yge=yve("species"),Xge=Rhe.Array,Zge=function(e,t){return new(function(e){var t;return zge(e)&&(t=e.constructor,(Kge(t)&&(t===Xge||zge(t.prototype))||wve(t)&&null===(t=t[Yge]))&&(t=void 0)),void 0===t?Xge:t}(e))(0===t?0:t)},Jge=Vhe([].push),Qge=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,u=5==e||i;return function(s,l,c,f){for(var d,p,h=Khe(s),v=Fge(h),g=function(e,t){return Lve(e),void 0===t?e:kge?kge(e,t):function(){return e.apply(t,arguments)}}(l,c),y=Mge(v),m=0,b=f||Zge,E=t?b(s,y):n||a?b(s,0):void 0;y>m;m++)if((u||m in v)&&(p=g(d=v[m],m,h),e))if(t)E[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Jge(E,d)}else switch(e){case 4:return!1;case 7:Jge(E,d)}return i?-1:r||o?o:E}},eye=[Qge(0),Qge(1),Qge(2),Qge(3),Qge(4),Qge(5),Qge(6),Qge(7)][0],tye=(Age=[].forEach)&&cve((function(){Age.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return eye(this,e,arguments.length>1?arguments[1]:void 0)},nye=function(e){if(e&&e.forEach!==tye)try{qve(e,"forEach",tye)}catch(t){e.forEach=tye}};for(var rye in xge)xge[rye]&&nye(Rhe[rye]&&Rhe[rye].prototype);nye(Nge);var oye={}.propertyIsEnumerable,iye=Object.getOwnPropertyDescriptor,aye={f:iye&&!oye.call({1:2},1)?function(e){var t=iye(this,e);return!!t&&t.enumerable}:oye},uye=function(e){return Fge(Whe(e))},sye=Object.getOwnPropertyDescriptor,lye={f:Eve?sye:function(e,t){if(e=uye(e),t=Uve(t),Ave)try{return sye(e,t)}catch(e){}if(Xhe(e,t))return Wve(!kve(aye.f,e,t),e[t])}},cye=Math.max,fye=Math.min,dye=function(e,t){var n=_ge(e);return n<0?cye(n+t,0):fye(n,t)},pye=function(e){return function(t,n,r){var o,i=uye(t),a=Mge(i),u=dye(r,a);if(e&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===n)return e||u||0;return!e&&-1}},hye=(pye(!0),pye(!1)),vye=Vhe([].push),gye=function(e,t){var n,r=uye(e),o=0,i=[];for(n in r)!Xhe(rge,n)&&Xhe(r,n)&&vye(i,n);for(;t.length>o;)Xhe(r,n=t[o++])&&(~hye(i,n)||vye(i,n));return i},yye=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mye=yye.concat("length","prototype"),bye={f:Object.getOwnPropertyNames||function(e){return gye(e,mye)}},Eye={f:Object.getOwnPropertySymbols},wye=Vhe([].concat),Sye=rve("Reflect","ownKeys")||function(e){var t=bye.f(Tve(e)),n=Eye.f;return n?wye(t,n(e)):t},Cye=function(e,t){for(var n=Sye(t),r=Gve.f,o=lye.f,i=0;i<n.length;i++){var a=n[i];Xhe(e,a)||r(e,a,o(t,a))}},Dye=/#|\.prototype\./,Aye=function(e,t){var n=Oye[xye(e)];return n==Nye||n!=Tye&&(tve(t)?cve(t):!!t)},xye=Aye.normalize=function(e){return String(e).replace(Dye,".").toLowerCase()},Oye=Aye.data={},Tye=Aye.NATIVE="N",Nye=Aye.POLYFILL="P",kye=Aye,Bye=lye.f,Iye=function(e,t){var n,r,o,i,a,u=e.target,s=e.global,l=e.stat;if(n=s?Rhe:l?Rhe[u]||Lhe(u,{}):(Rhe[u]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Bye(n,r))&&a.value:n[r],!kye(s?r:u+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Cye(i,o)}(e.sham||o&&o.sham)&&qve(i,"sham",!0),gge(n,r,i,e)}},Fye=Object.keys||function(e){return gye(e,yye)},Pye=Object.assign,Rye=Object.defineProperty,_ye=Vhe([].concat),Lye=!Pye||cve((function(){if(Eve&&1!==Pye({b:1},Pye(Rye({},"a",{enumerable:!0,get:function(){Rye(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Pye({},e)[n]||Fye(Pye({},t)).join("")!=r}))?function(e,t){for(var n=Khe(e),r=arguments.length,o=1,i=Eye.f,a=aye.f;r>o;)for(var u,s=Fge(arguments[o++]),l=i?_ye(Fye(s),i(s)):Fye(s),c=l.length,f=0;c>f;)u=l[f++],Eve&&!kve(a,s,u)||(n[u]=s[u]);return n}:Pye;Iye({target:"Object",stat:!0,forced:Object.assign!==Lye},{assign:Lye});var jye=Bhe((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var u in i)if(i.hasOwnProperty(u)){if(u==t)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);n.hasOwnProperty(u)||(a[u]=i[u])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var u in t)if(t.hasOwnProperty(u)){n.call(t,u,t[u],r||u);var s=t[u],l=o.util.type(s);"Object"!==l||i[a(s)]?"Array"!==l||i[a(s)]||(i[a(s)]=!0,e(s,n,u,i)):(i[a(s)]=!0,e(s,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),u=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var s=n.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&(s.className=s.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:u,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return l(o,o.head,e),u(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function u(e,t,n,r,s,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var v=p[h],g=v.inside,y=!!v.lookbehind,m=!!v.greedy,b=v.alias;if(m&&!v.pattern.global){var E=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,E+"g")}for(var w=v.pattern||v,S=r.next,C=s;S!==t.tail&&!(f&&C>=f.reach);C+=S.value.length,S=S.next){var D=S.value;if(t.length>e.length)return;if(!(D instanceof i)){var A,x=1;if(m){if(!(A=a(w,C,e,y)))break;var O=A.index,T=A.index+A[0].length,N=C;for(N+=S.value.length;O>=N;)N+=(S=S.next).value.length;if(C=N-=S.value.length,S.value instanceof i)continue;for(var k=S;k!==t.tail&&(N<T||"string"==typeof k.value);k=k.next)x++,N+=k.value.length;x--,D=e.slice(C,N),A.index-=C}else if(!(A=a(w,0,D,y)))continue;O=A.index;var B=A[0],I=D.slice(0,O),F=D.slice(O+B.length),P=C+D.length;f&&P>f.reach&&(f.reach=P);var R=S.prev;if(I&&(R=l(t,R,I),C+=I.length),c(t,R,x),S=l(t,R,new i(d,g?o.tokenize(B,g):B,b,B)),F&&l(t,S,F),x>1){var _={cause:d+","+h,reach:P};u(e,t,n,S.prev,C,_),f&&_.reach>f.reach&&(f.reach=_.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var u="";for(var s in i.attributes)u+=" "+s+'="'+(i.attributes[s]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+u+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
113
25
|
/**
|
|
114
26
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
115
27
|
*
|
|
@@ -117,34 +29,5 @@ var xse=function(){return xse=Object.assign||function(e){for(var t,n=1,r=argumen
|
|
|
117
29
|
* @author Lea Verou <https://lea.verou.me>
|
|
118
30
|
* @namespace
|
|
119
31
|
* @public
|
|
120
|
-
*/e.exports&&(e.exports=t),void 0!==Ede&&(Ede.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,O=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,v,S,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var x=A+"|"+D,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[x]),N=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),k=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[k,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[k]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]),_=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[x]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[_,I]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:L(P,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:L(R,_)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}})),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Nve=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function kve(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+kve(t)}),0)}var Bve,Ive=Ade.String,Fve=function(e){if("Symbol"===phe(e))throw TypeError("Cannot convert a Symbol value to a string");return Ive(e)},Pve=function(){var e=mpe(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_ve=Ade.RegExp,Rve=epe((function(){var e=_ve("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Lve=Rve||epe((function(){return!_ve("a","y").sticky})),jve={BROKEN_CARET:Rve||epe((function(){var e=_ve("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:Lve,UNSUPPORTED_Y:Rve},Mve=cpe?Object.defineProperties:function(e,t){mpe(e);for(var n,r=Zhe(t),o=Cve(t),i=o.length,a=0;i>a;)_pe.f(e,n=o[a++],r[n]);return e},zve=qde("document","documentElement"),Hve=Wpe("IE_PROTO"),Uve=function(){},$ve=function(e){return"<script>"+e+"<\/script>"},Vve=function(e){e.write($ve("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gve=function(){try{Bve=new ActiveXObject("htmlfile")}catch(e){}var e,t;Gve="undefined"!=typeof document?document.domain&&Bve?Vve(Bve):((t=hpe("iframe")).style.display="none",zve.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write($ve("document.F=Object")),e.close(),e.F):Vve(Bve);for(var n=uve.length;n--;)delete Gve.prototype[uve[n]];return Gve()};qpe[Hve]=!0;var Wve,qve,Kve=Object.create||function(e,t){var n;return null!==e?(Uve.prototype=mpe(e),n=new Uve,Uve.prototype=null,n[Hve]=e):n=Gve(),void 0===t?n:Mve(n,t)},Yve=Ade.RegExp,Xve=epe((function(){var e=Yve(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Zve=Ade.RegExp,Jve=epe((function(){var e=Zve("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Qve=the.get,ege=Nde("native-string-replace",String.prototype.replace),tge=RegExp.prototype.exec,nge=tge,rge=Pde("".charAt),oge=Pde("".indexOf),ige=Pde("".replace),age=Pde("".slice),uge=(qve=/b*/g,Epe(tge,Wve=/a/,"a"),Epe(tge,qve,"a"),0!==Wve.lastIndex||0!==qve.lastIndex),sge=jve.BROKEN_CARET,lge=void 0!==/()??/.exec("")[1];(uge||lge||sge||Xve||Jve)&&(nge=function(e){var t,n,r,o,i,a,u,s=this,l=Qve(s),c=Fve(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Epe(nge,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=sge&&s.sticky,h=Epe(Pve,s),v=s.source,g=0,y=c;if(p&&(h=ige(h,"y",""),-1===oge(h,"g")&&(h+="g"),y=age(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==rge(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),lge&&(n=new RegExp("^"+v+"$(?!\\s)",h)),uge&&(r=s.lastIndex),o=Epe(tge,p?n:s,y),p?o?(o.input=age(o.input,g),o[0]=age(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:uge&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),lge&&o&&o.length>1&&Epe(ege,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=Kve(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var cge=nge;Sve({target:"RegExp",proto:!0,forced:/./.exec!==cge},{exec:cge});var fge=Function.prototype,dge=fge.apply,pge=fge.bind,hge=fge.call,vge="object"==typeof Reflect&&Reflect.apply||(pge?hge.bind(dge):function(){return hge.apply(dge,arguments)}),gge=upe("species"),yge=RegExp.prototype,mge=upe("match"),bge=Ade.TypeError,Ege=upe("species"),wge=Pde("".charAt),Sge=Pde("".charCodeAt),Cge=Pde("".slice),Dge=function(e){return function(t,n){var r,o,i=Fve(Rde(t)),a=Ohe(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Sge(i,a))<55296||r>56319||a+1===u||(o=Sge(i,a+1))<56320||o>57343?e?wge(i,a):r:e?Cge(i,a,a+2):o-56320+(r-55296<<10)+65536}},Age=(Dge(!1),Dge(!0)),Oge=function(e,t,n){return t+(n?Age(e,t).length:1)},xge=Ade.Array,Tge=Math.max,Nge=function(e,t,n){for(var r,o,i,a,u=Nhe(e),s=nve(t,u),l=nve(void 0===n?u:n,u),c=xge(Tge(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Ipe(o))in r?_pe.f(r,a,Rpe(0,i)):r[a]=i;return c.length=f,c},kge=Ade.TypeError,Bge=function(e,t){var n=e.exec;if(Gde(n)){var r=Epe(n,e,t);return null!==r&&mpe(r),r}if("RegExp"===lhe(e))return Epe(cge,e,t);throw kge("RegExp#exec called on incompatible receiver")},Ige=jve.UNSUPPORTED_Y,Fge=Math.min,Pge=[].push,_ge=Pde(/./.exec),Rge=Pde(Pge),Lge=Pde("".slice);!function(e,t,n,r){var o=upe(e),i=!epe((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!epe((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[gge]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Pde(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=Fve(Rde(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!fpe(r=e)||!(void 0!==(o=r[mge])?o:"RegExp"==lhe(r)))return Epe(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=Epe(cge,p,i))&&!((s=p.lastIndex)>d&&(Rge(c,Lge(i,d,u.index)),u.length>1&&u.index<i.length&&vge(Pge,c,Nge(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&_ge(p,"")||Rge(c,""):Rge(c,Lge(i,d)),c.length>a?Nge(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:Epe(t,this,e,n)}:t,[function(t,n){var o=Rde(this),i=null==t?void 0:Tpe(t,e);return i?Epe(i,t,o,n):Epe(r,Fve(o),t,n)},function(e,o){var i=mpe(this),a=Fve(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=mpe(e).constructor;return void 0===r||null==(n=mpe(r)[Ege])?t:function(e){if(jhe(e))return e;throw bge(Ape(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ige?"g":"y"),f=new s(Ige?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Bge(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Ige?0:h;var g,y=Bge(f,Ige?Lge(a,h):a);if(null===y||(g=Fge(The(f.lastIndex+(Ige?h:0)),a.length))===p)h=Oge(a,h,l);else{if(Rge(v,Lge(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Rge(v,y[m]),v.length===d)return v;h=p=g}}return Rge(v,Lge(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=Pde(e),s=t.exec;return s===cge||s===yge.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));ahe(String.prototype,e,s[0]),ahe(yge,o,s[1])}r&&Lpe(yge[o],"sham",!0)}("split",0,!!epe((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ige),Sve({global:!0},{globalThis:Ade}),$p&&(Mp.fn.attr=$p);var jge=ihe.PROPER,Mge=RegExp.prototype,zge=Mge.toString,Hge=Pde(Pve),Uge=epe((function(){return"/a/b"!=zge.call({source:"a",flags:"b"})})),$ge=jge&&"toString"!=zge.name;(Uge||$ge)&&ahe(RegExp.prototype,"toString",(function(){var e=mpe(this),t=Fve(e.source),n=e.flags;return"/"+t+"/"+Fve(void 0===n&&wpe(Mge,e)&&!("flags"in Mge)?Hge(e):n)}),{unsafe:!0});var Vge=function(){function e(){this.title=UF("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Cf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};md.setNodes(e,n,{match:function(e){return Qx.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Qx.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Qx.getParentNode(e,t);return Cf.isElement(n)?"pre"!==n.type?null:t:null},e}(),Gge={renderStyle:function(e,t){var n=e,r=t,o="";return Nve.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;if("code"!==Qx.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new Vge},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},Wge=/"/g,qge=Pde("".replace);Sve({target:"String",proto:!0,forced:epe((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return"a","name",t=e,n=Fve(Rde(this)),r="<a",(r+=' name="'+qge(Fve(t),Wge,""")+'"')+">"+n+"</a>";var t,n,r}});var Kge=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!ed.isText(e))return null;var t=Qx.getParentNode(null,e);if(t&&"code"===Qx.getNodeType(t)){var n=Qx.getParentNode(null,t);if(n&&"pre"===Qx.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=Tve.languages[t];return n?Tve.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=
|
|
121
|
-
/*! *****************************************************************************
|
|
122
|
-
Copyright (c) Microsoft Corporation.
|
|
123
|
-
|
|
124
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
125
|
-
purpose with or without fee is hereby granted.
|
|
126
|
-
|
|
127
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
128
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
129
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
130
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
131
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
132
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
133
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
134
|
-
***************************************************************************** */
|
|
135
|
-
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+kve(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},Yge=function(){return Yge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yge.apply(this,arguments)},Xge=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=Yge(Yge({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=Yge(Yge({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=Yge(Yge({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=Yge(Yge({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=oO(oO({},o),t||{});if(null!=nT[n])throw new Error("Duplicated key '"+n+"' in menu items");nT[n]=r,function(e,t){null!=t&&(tT[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;zB[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){MB.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;vT[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){hT.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){rk.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;ik[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){ok.push(e)}(e)},e.registerModule=function(e){Zge(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();
|
|
136
|
-
/*! *****************************************************************************
|
|
137
|
-
Copyright (c) Microsoft Corporation.
|
|
138
|
-
|
|
139
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
140
|
-
purpose with or without fee is hereby granted.
|
|
141
|
-
|
|
142
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
143
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
144
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
145
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
146
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
147
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
148
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
149
|
-
***************************************************************************** */function Zge(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return Xge.registerMenu(e)})),n&&n.forEach((function(e){return Xge.registerRenderElem(e)})),r&&Xge.registerRenderStyle(r),o&&o.forEach((function(e){return Xge.registerElemToHtml(e)})),i&&Xge.registerStyleToHtml(i),a&&a.forEach((function(e){return Xge.registerPreParseHtml(e)})),u&&u.forEach((function(e){return Xge.registerParseElemHtml(e)})),s&&Xge.registerParseStyleHtml(s),l&&Xge.registerPlugin(l)}Xq.forEach((function(e){return Zge(e)})),Zge(m0),Zge(t5),Zge(woe),Zge(bde),Zge(Gge);var Jge='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var Qge={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var eye={hoverbarKeys:Yge(Yge({},Qge),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};Xge.setEditorConfig(Yge(Yge({},eye),{decorate:Kge}));var tye={hoverbarKeys:Qge};Xge.setSimpleEditorConfig(Yge(Yge({},tye),{decorate:Kge}));var nye={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:UF("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:UF("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:UF("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:UF("editor.image"),iconSvg:Jge,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:UF("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};Xge.setToolbarConfig(nye);var rye={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:UF("editor.image"),iconSvg:Jge,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function oye(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?Xge.simpleEditorConfig:Xge.editorConfig,c=Yge(Yge({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return RI({selector:n,config:Yge(Yge(Yge({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:Xge.plugins})}function iye(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?Xge.simpleToolbarConfig:Xge.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return Lk(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=oO({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new HI(n,i);return ux.set(a,e),sx.set(e,a),a}(n,{selector:t,config:Yge(Yge({},u),o)});return s}Xge.setSimpleToolbarConfig(rye);var aye={};export{Xge as Boot,Qx as DomEditor,Nf as SlateEditor,Cf as SlateElement,kf as SlateLocation,_f as SlateNode,Mf as SlatePath,$f as SlatePoint,qf as SlateRange,ed as SlateText,md as SlateTransforms,HI as Toolbar,oye as createEditor,iye as createToolbar,KI as createUploader,aye as default,AI as genModalButtonElems,CI as genModalInputElems,DI as genModalTextareaElems,MF as i18nAddResources,zF as i18nChangeLanguage,HF as i18nGetResources,UF as t};
|
|
32
|
+
*/e.exports&&(e.exports=t),void 0!==khe&&(khe.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var u=i.appendChild(document.createElement("CODE"));u.textContent="Loading…";var s=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(s)||[,"none"])[1];l=e[c]||c}a(u,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",s,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),u.textContent=d.responseText,t.highlightElement(u)):(i.setAttribute(n,"failed"),d.status>=400?u.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:u.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},u=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var s=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(s+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(s=a(t[r-1])+s,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",s,null,s)}o.content&&"string"!=typeof o.content&&u(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||u(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),d=s(o+" "+i+" "+u),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[v,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),S=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,y,m]),C={keyword:c,punctuation:/[<>()?,.:[\]]/},D=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,A=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:RegExp(D),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,S]),lookbehind:!0,inside:C},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:C},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:C},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:C},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[S,d,v]),inside:C}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:C},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[S,y]),inside:C,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[S]),lookbehind:!0,inside:C,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,p]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(p),alias:"class-name",inside:C}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,v,S,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(S),greedy:!0,inside:C},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var O=A+"|"+D,T=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[O]),N=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),k=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,B=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,N]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[k,B]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[k]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[N]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,F=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[T]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[F,I]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[O]),2),_=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,I]);function L(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:L(P,F)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[_]),lookbehind:!0,greedy:!0,inside:L(_,R)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift})),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var u=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(u=(/[a-z][\w-]*/i.exec(u)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,s]:a.alias.push(s):a.alias=[s]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),s(n)):u[t]||e}))}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",(function(e){if("groovy"===e.language&&"string"===e.type){var t=e.content[0];if("'"!=t){var n=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===t&&(n=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/</g,"<").replace(/&/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push("/"===t?"regex":"gstring")}}})),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Mye=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function zye(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+zye(t)}),0)}var Hye,Uye=Rhe.String,$ye=function(e){if("Symbol"===Cge(e))throw TypeError("Cannot convert a Symbol value to a string");return Uye(e)},Vye=function(){var e=Tve(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Gye=Rhe.RegExp,Wye=cve((function(){var e=Gye("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),qye=Wye||cve((function(){return!Gye("a","y").sticky})),Kye={BROKEN_CARET:Wye||cve((function(){var e=Gye("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),MISSED_STICKY:qye,UNSUPPORTED_Y:Wye},Yye=Eve?Object.defineProperties:function(e,t){Tve(e);for(var n,r=uye(t),o=Fye(t),i=o.length,a=0;i>a;)Gve.f(e,n=o[a++],r[n]);return e},Xye=rve("document","documentElement"),Zye=nge("IE_PROTO"),Jye=function(){},Qye=function(e){return"<script>"+e+"<\/script>"},eme=function(e){e.write(Qye("")),e.close();var t=e.parentWindow.Object;return e=null,t},tme=function(){try{Hye=new ActiveXObject("htmlfile")}catch(e){}var e,t;tme="undefined"!=typeof document?document.domain&&Hye?eme(Hye):((t=Dve("iframe")).style.display="none",Xye.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Qye("document.F=Object")),e.close(),e.F):eme(Hye);for(var n=yye.length;n--;)delete tme.prototype[yye[n]];return tme()};rge[Zye]=!0;var nme,rme,ome=Object.create||function(e,t){var n;return null!==e?(Jye.prototype=Tve(e),n=new Jye,Jye.prototype=null,n[Zye]=e):n=tme(),void 0===t?n:Yye(n,t)},ime=Rhe.RegExp,ame=cve((function(){var e=ime(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ume=Rhe.RegExp,sme=cve((function(){var e=ume("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),lme=fge.get,cme=Mhe("native-string-replace",String.prototype.replace),fme=RegExp.prototype.exec,dme=fme,pme=Vhe("".charAt),hme=Vhe("".indexOf),vme=Vhe("".replace),gme=Vhe("".slice),yme=(rme=/b*/g,kve(fme,nme=/a/,"a"),kve(fme,rme,"a"),0!==nme.lastIndex||0!==rme.lastIndex),mme=Kye.BROKEN_CARET,bme=void 0!==/()??/.exec("")[1];(yme||bme||mme||ame||sme)&&(dme=function(e){var t,n,r,o,i,a,u,s=this,l=lme(s),c=$ye(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=kve(dme,f,c),s.lastIndex=f.lastIndex,t;var d=l.groups,p=mme&&s.sticky,h=kve(Vye,s),v=s.source,g=0,y=c;if(p&&(h=vme(h,"y",""),-1===hme(h,"g")&&(h+="g"),y=gme(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==pme(c,s.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,g++),n=new RegExp("^(?:"+v+")",h)),bme&&(n=new RegExp("^"+v+"$(?!\\s)",h)),yme&&(r=s.lastIndex),o=kve(fme,p?n:s,y),p?o?(o.input=gme(o.input,g),o[0]=gme(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yme&&o&&(s.lastIndex=s.global?o.index+o[0].length:r),bme&&o&&o.length>1&&kve(cme,o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=ome(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Eme=dme;Iye({target:"RegExp",proto:!0,forced:/./.exec!==Eme},{exec:Eme});var wme=Function.prototype,Sme=wme.apply,Cme=wme.bind,Dme=wme.call,Ame="object"==typeof Reflect&&Reflect.apply||(Cme?Dme.bind(Sme):function(){return Dme.apply(Sme,arguments)}),xme=yve("species"),Ome=RegExp.prototype,Tme=yve("match"),Nme=Rhe.TypeError,kme=yve("species"),Bme=Vhe("".charAt),Ime=Vhe("".charCodeAt),Fme=Vhe("".slice),Pme=function(e){return function(t,n){var r,o,i=$ye(Whe(t)),a=_ge(n),u=i.length;return a<0||a>=u?e?"":void 0:(r=Ime(i,a))<55296||r>56319||a+1===u||(o=Ime(i,a+1))<56320||o>57343?e?Bme(i,a):r:e?Fme(i,a,a+2):o-56320+(r-55296<<10)+65536}},Rme=(Pme(!1),Pme(!0)),_me=function(e,t,n){return t+(n?Rme(e,t).length:1)},Lme=Rhe.Array,jme=Math.max,Mme=function(e,t,n){for(var r,o,i,a,u=Mge(e),s=dye(t,u),l=dye(void 0===n?u:n,u),c=Lme(jme(l-s,0)),f=0;s<l;s++,f++)r=c,o=f,i=e[s],void 0,(a=Uve(o))in r?Gve.f(r,a,Wve(0,i)):r[a]=i;return c.length=f,c},zme=Rhe.TypeError,Hme=function(e,t){var n=e.exec;if(tve(n)){var r=kve(n,e,t);return null!==r&&Tve(r),r}if("RegExp"===bge(e))return kve(Eme,e,t);throw zme("RegExp#exec called on incompatible receiver")},Ume=Kye.UNSUPPORTED_Y,$me=Math.min,Vme=[].push,Gme=Vhe(/./.exec),Wme=Vhe(Vme),qme=Vhe("".slice);!function(e,t,n,r){var o=yve(e),i=!cve((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!cve((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[xme]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||n){var u=Vhe(/./[o]),s=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r,o,i=$ye(Whe(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!wve(r=e)||!(void 0!==(o=r[Tme])?o:"RegExp"==bge(r)))return kve(t,i,e,a);for(var u,s,l,c=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=new RegExp(e.source,f+"g");(u=kve(Eme,p,i))&&!((s=p.lastIndex)>d&&(Wme(c,qme(i,d,u.index)),u.length>1&&u.index<i.length&&Ame(Vme,c,Mme(u,1)),l=u[0].length,d=s,c.length>=a));)p.lastIndex===u.index&&p.lastIndex++;return d===i.length?!l&&Gme(p,"")||Wme(c,""):Wme(c,qme(i,d)),c.length>a?Mme(c,0,a):c}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:kve(t,this,e,n)}:t,[function(t,n){var o=Whe(this),i=null==t?void 0:jve(t,e);return i?kve(i,t,o,n):kve(r,$ye(o),t,n)},function(e,o){var i=Tve(this),a=$ye(e),u=n(r,i,a,o,r!==t);if(u.done)return u.value;var s=function(e,t){var n,r=Tve(e).constructor;return void 0===r||null==(n=Tve(r)[kme])?t:function(e){if(Kge(e))return e;throw Nme(Rve(e)+" is not a constructor")}(n)}(i,RegExp),l=i.unicode,c=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Ume?"g":"y"),f=new s(Ume?"^(?:"+i.source+")":i,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===a.length)return null===Hme(f,a)?[a]:[];for(var p=0,h=0,v=[];h<a.length;){f.lastIndex=Ume?0:h;var g,y=Hme(f,Ume?qme(a,h):a);if(null===y||(g=$me(jge(f.lastIndex+(Ume?h:0)),a.length))===p)h=_me(a,h,l);else{if(Wme(v,qme(a,p,h)),v.length===d)return v;for(var m=1;m<=y.length-1;m++)if(Wme(v,y[m]),v.length===d)return v;h=p=g}}return Wme(v,qme(a,p)),v}]}(o,""[e],(function(e,t,n,r,o){var a=Vhe(e),s=t.exec;return s===Eme||s===Ome.exec?i&&!o?{done:!0,value:u(t,n,r)}:{done:!0,value:a(n,t,r)}:{done:!1}}));gge(String.prototype,e,s[0]),gge(Ome,o,s[1])}r&&qve(Ome[o],"sham",!0)}("split",0,!!cve((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),Ume),Iye({global:!0},{globalThis:Rhe}),$p&&(Mp.fn.attr=$p);var Kme=vge.PROPER,Yme=RegExp.prototype,Xme=Yme.toString,Zme=Vhe(Vye),Jme=cve((function(){return"/a/b"!=Xme.call({source:"a",flags:"b"})})),Qme=Kme&&"toString"!=Xme.name;(Jme||Qme)&&gge(RegExp.prototype,"toString",(function(){var e=Tve(this),t=$ye(e.source),n=e.flags;return"/"+t+"/"+$ye(void 0===n&&Bve(Yme,e)&&!("flags"in Yme)?Zme(e):n)}),{unsafe:!0});var ebe=function(){function e(){this.title=UF("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return"";if(!Cf.isElement(t))return"";var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some((function(e){return e.value===n}))?n:""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};md.setNodes(e,n,{match:function(e){return QO.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=QO.getSelectedNodeByType(e,"code");if(null==t)return null;var n=QO.getParentNode(e,t);return Cf.isElement(n)?"pre"!==n.type?null:t:null},e}(),tbe={renderStyle:function(e,t){var n=e,r=t,o="";return Mye.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},parseStyleHtml:function(e,t,n){var r=Mp(e);if(!Cf.isElement(t))return t;if("code"!==QO.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new ebe},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n;return"<code "+(r?'class="language-'+r+'"':"")+">"+t+"</code>"}}]},nbe=/"/g,rbe=Vhe("".replace);Iye({target:"String",proto:!0,forced:cve((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return"a","name",t=e,n=$ye(Whe(this)),r="<a",(r+=' name="'+rbe($ye(t),nbe,""")+'"')+">"+n+"</a>";var t,n,r}}),"function"==typeof SuppressedError&&SuppressedError;var obe=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],u=[],s=function(e){if(!ed.isText(e))return null;var t=QO.getParentNode(null,e);if(t&&"code"===QO.getNodeType(t)){var n=QO.getParentNode(null,t);if(n&&"pre"===QO.getNodeType(n))return t}return null}(i);if(null==s)return u;var l=s.language,c=void 0===l?"":l;if(!c)return u;var f=function(e,t){if(!t)return[];var n=jye.languages[t];return n?jye.tokenize(e.text,n):[]}(i,c),d=0;try{for(var p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var v=h.value,g=d+zye(v);"string"!=typeof v&&u.push(((r={})[v.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:g},r)),d=g}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return u},ibe=function(){return ibe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ibe.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var abe=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=ibe(ibe({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=ibe(ibe({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=ibe(ibe({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=ibe(ibe({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=ox(ox({},o),t||{});if(null!=nT[n])throw new Error("Duplicated key '"+n+"' in menu items");nT[n]=r,function(e,t){null!=t&&(tT[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;zB[t||""]=n}(e)},e.registerRenderStyle=function(e){!function(e){MB.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;vT[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){hT.push(e)}(e)},e.registerPreParseHtml=function(e){!function(e){rk.push(e)}(e)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;ik[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){ok.push(e)}(e)},e.registerModule=function(e){ube(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function ube(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return abe.registerMenu(e)})),n&&n.forEach((function(e){return abe.registerRenderElem(e)})),r&&abe.registerRenderStyle(r),o&&o.forEach((function(e){return abe.registerElemToHtml(e)})),i&&abe.registerStyleToHtml(i),a&&a.forEach((function(e){return abe.registerPreParseHtml(e)})),u&&u.forEach((function(e){return abe.registerParseElemHtml(e)})),s&&abe.registerParseStyleHtml(s),l&&abe.registerPlugin(l)}Xq.forEach((function(e){return ube(e)})),ube(m0),ube(f7),ube(Bae),ube(Nhe),ube(tbe);var sbe='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var lbe={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize","editVideoSrc"]}};var cbe={hoverbarKeys:ibe(ibe({},lbe),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};abe.setEditorConfig(ibe(ibe({},cbe),{decorate:obe}));var fbe={hoverbarKeys:lbe};abe.setSimpleEditorConfig(ibe(ibe({},fbe),{decorate:obe}));var dbe={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:UF("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:UF("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:UF("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:UF("editor.image"),iconSvg:sbe,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:UF("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};abe.setToolbarConfig(dbe);var pbe={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:UF("editor.image"),iconSvg:sbe,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function hbe(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,s=e.mode,l="simple"===(void 0===s?"default":s)?abe.simpleEditorConfig:abe.editorConfig,c=ibe(ibe({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return _I({selector:n,config:ibe(ibe(ibe({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:abe.plugins})}function vbe(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?abe.simpleToolbarConfig:abe.toolbarConfig,s=function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.selector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return Lk(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by selector '"+n+"'");var i=ox({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},o||{}),a=new HI(n,i);return uO.set(a,e),sO.set(e,a),a}(n,{selector:t,config:ibe(ibe({},u),o)});return s}abe.setSimpleToolbarConfig(pbe);var gbe={};export{abe as Boot,QO as DomEditor,Nf as SlateEditor,Cf as SlateElement,kf as SlateLocation,Rf as SlateNode,Mf as SlatePath,$f as SlatePoint,qf as SlateRange,ed as SlateText,md as SlateTransforms,HI as Toolbar,hbe as createEditor,vbe as createToolbar,KI as createUploader,gbe as default,AI as genModalButtonElems,CI as genModalInputElems,DI as genModalTextareaElems,MF as i18nAddResources,zF as i18nChangeLanguage,HF as i18nGetResources,UF as t};
|
|
150
33
|
//# sourceMappingURL=index.esm.js.map
|